Forum Discussion
Unable to Add Service Principal to Power BI Workspace Using Power BI REST API (403 Forbidden Error)
- 1 year ago
Hi. Is your App registered for login and getting the token a member of the workspace that you want to add another App? the API operations need the App to be part of the workspace.
I hope that helps,
Hi. Is your App registered for login and getting the token a member of the workspace that you want to add another App? the API operations need the App to be part of the workspace.
I hope that helps,
Hi ,
can you elobrate your question
issue: Iam just trying to add SPN to PBI Workspace as Member using the above script
my app is registered in Azure directory portal with required API permission admin granted
Workspace Read all-View all workspaces
Wokspace Readwrite all-Read and write all workspaces
Powerbi Admin API settings, Service principals can access read-for entire Organisation
- ibarrau1 year agoSuper User
Ok, make sure the App is Admin of the workspace, not member. Only Admin can Add or remove any user in a workspace or roles.
I hope that helps,