Forum Discussion
kimlaurits
4 years agoFrequent Visitor
Add-PowerBIWorkspaceUser - adding group to Workspace
Hi, I am trying to automate different PowerBI tasks using a service principal. I can create new PowerBI Workspaces and the service principal is an admin on the Workspace. Afterwards I would like t...
- Anonymous4 years ago
HI ,
Below worked like a charm :Add-PowerBIWorkspaceUser -Scope Organization -Id <workspaceid> -UserEmailAddress [email protected] -AccessRight Admin
Ensure: You have Admin Rights to add the user. I tested it just now my user from which running API has Admin Rights on the workspace and its Premium ( to be considered if you are adding free user )
Waiting for update 🙂
CHeers
Mahak
kimlaurits
4 years agoFrequent Visitor
Yes - the same works here, when adding a user.
But unfortunately it doesn't work when adding a AD group.
Anonymous
4 years agoNot applicable
Did you tried the latest code I posted?