Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RatanMasanta
Regular Visitor

Authentication Token using REST API

I am trying to generate token using REST APIs. When MFA is being turned on for the user, the previously made use cases are failing and I'm getting the error when getting access_token:


error_description: AADSTS901002: The 'resource' request parameter is not supported.

Trace ID: 725a1238-6627-4532-9810-be8819b76500

Correlation ID: e9a0e1e8-df1e-40b2-9899-c2ff94bf1d51

Timestamp: 2020-12-23 10:19:10Z
error_codes:  901002 

 

If a user has MFA on and if I want to generate Bearer token through the API to generate token, how should I proceed?

 

Thanks,

Ratan

1 REPLY 1
Anonymous
Not applicable

Hi @RatanMasanta 

You may refer to blogs as below for more details, and I hope they could help you solve your problem.

Bolg1: Multi Factor Auth with Service API

Blog2: Multi-factor Authentication for Power BI – O365

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.