Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Just wondering if there is any specific issues I'm missing currently.
Whlist trying to use PowerShell cmdlets command of Add-PowerBIWorkspaceUser, we are encountering error messages of "Operation returned an invalid status code 'Unauthorized'"
We have proven that this works conditional on :
However despite logging in through "Connect-PowerBIServiceAccount" with an account that is listed as PBI service admin, we encountered the error message for any workspace where the login name is not listed as admin.
Looking through the documentations, i did not see any limitations where add users is only possible where the account using the cmdlets is explicitly listed as an admin in the workspace.
We have also eliminated the following as possible causes of error:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.