Forum Discussion

kulandai's avatar
kulandai
Regular Visitor
4 years ago
Solved

Power BI consent issue while getting token

In Azure portal, there are 2 directorys assigned to my user ([email protected])

 

1. I have registed app under Directory 1 and granted admin concent, then I used client id,username and password to get the token (working fine)

 

2. I have reistered app under Directory 2 and granted admin concent then I used client id,username and password to get the token and I get the below error:

 

Error Details:

One or more errors occurred. (AADSTS65001: The user or administrator has not consented to use the application with ID '345cdacc-12ee-4d02-9c42-c617e3642c9d' named 'PowerBiReports'. Send an interactive authorization request for this user and resource.
Trace ID: e7201210-02cb-41b0-9696-790defbc1f01
Correlation ID: f00aca65-6625-4c87-ac8e-367c1eb0892c
Timestamp: 2021-10-15 14:13:45Z)