This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I am using the PowerShell PBI admin commands and I am unable to get this to work, has anyone else had any luck with this?
Add-PowerBIWorkspaceUser : Operation returned an invalid status code 'Unauthorized'
I use the command and include
Add-PowerBIWorkspaceUser -Id xxxxxxx -UserPrincipalName 'myuser@fakeaddress.com' -AccessRight Admin
When I run resolve error this is what I get back that seems pertinent
Response : Unauthorized (401):
PowerBIErrorInfo : GroupNotAccessible
Getting the same error, even though I'm the Admin for the company.
Contributor and Viewer, no problem.
how do you resolve the problem, thanks
Hi @OneWithQuestion ,
Are you the admin of this workspace?
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 7 | |
| 7 | |
| 6 |
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 21 | |
| 19 | |
| 19 |