Forum Discussion
Add user to Power BI Group
I am trying to add a user to a group. My approach is to get a access tokan from the registerd app in azure AD.
I am trying the following code, but i am not sure what i should include as the resource url
var authenticationResult = await authenticationContext.AcquireTokenAsync(ResourceUrl, ClientId, credential);
My idea was that the resource url should be "https://analysis.windows.net/powerbi/api". But the link deosnt seem to work.
also I have used the authority url "https://login.microsoftonline.com/common/oauth2/authorize"
I get a error saying "AADSTS70002: The request body must contain the following parameter: 'client_secret or client_assertion'"
I am a niebie to Power BI and Azure. I would greatly appriciate some advise on this.
5 Replies
- AnonymousNot applicable
Are you trying to give them access to a Workspace? If so you can do this through the interface. Press the ">" next to "Workspaces". Find the name of the workspace in the listing and press the ... menu. In there select 'Edit Workspace' and you can add/remove members. They will need a Pro License.
If you are using Workspace Apps, you will need to use the "Update App" button and grant them access in the 'Access' section.
- ShaamilRegular Visitor
Actually i am trying to add user through C# code from my end, so that it will get updated in the user group in power bi site.
- sampathkumarFrequent Visitor
Why too much complicated , we can do in service itself right?? Can we know what exactly you are trying
- AnonymousNot applicable
Is there a way to create a user group within power BI itself?
Thanks,
Ankita