Forum Discussion
udione
Helper I
2 years agoUpdate DataSource parameter with API
I'm trying to update DataSource Parameters with this code: string scope = "https://analysis.windows.net/powerbi/api/.default";
IConfidentialClientApplication app = ConfidentialClientApplication...
lbendlin
Super User
2 years agoudione
Helper I
2 years agoDoes this imply that I can only methods like
UpdateParametersInGroupWithHttpMessagesAsync
only if I get user access token and cannot just use token quired using only applicattion secret?
- lbendlin2 years ago
Super User
no scope = no worky
- udione2 years ago
Helper I
I've changed that now my user (which is admin in PowerBI) is used for fetching access token.
I can execute methods like pbiClient.Datasets.GetDatasetsInGroup
But when executing pbiClient.Datasets.UpdateParametersInGroupWithHttpMessagesAsync
I still get Forbidden result.
Decrypted token in jwt.io still does not have scp.