Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi Team,
I am creating oAuth token with below request payload and getting oAuth bearer token. When i use that token to list data sets, groups, add rows to dataset tables, we are getting the 403 Forbidden access.
POST https://login.windows.net/common/oauth2/token
grant_type : client_credentials
resource: https://analysis.windows.net/powerbi/api
client_secret: XXXX
client_id: XXXX
This issue is blocking us to update data set tables data, do we have any documentation to get oAuth beare token from REST API (postman)
Thanks
Mani
@mani1215 wrote:
Hi Team,
I am creating oAuth token with below request payload and getting oAuth bearer token. When i use that token to list data sets, groups, add rows to dataset tables, we are getting the 403 Forbidden access.
POST https://login.windows.net/common/oauth2/token
grant_type : client_credentials
resource: https://analysis.windows.net/powerbi/api
client_secret: XXXX
client_id: XXXX
This issue is blocking us to update data set tables data, do we have any documentation to get oAuth beare token from REST API (postman)
Thanks
Mani
Based on my test, the token from grant_type "client-credentials" doesn't work. Try to use grant_type: password, the token works in my test.
@Eric_Zhang I am able to make it work with UserNamePassword Credential but unable to communicate with the Power BI service with clientCredential. Below is my code snippet. credential is of type UserPasswordCredential and creds is of type ClientCredential, instantiated with clientID and client secret.
Snippet
var authenticationContext = new AuthenticationContext("https://login.windows.net/common/oauth2/authorize/"); //var authenticationResult = await authenticationContext.AcquireTokenAsync("https://analysis.windows.net/powerbi/api", clientId, credential); var authenticationResult = await authenticationContext.AcquireTokenAsync("https://analysis.windows.net/powerbi/api", creds);
We would like to use the ClientCredential just to make sure we don't have to update the password every 3 months(governed by policies)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |