Forum Discussion
aaronfdsouza
2 years agoFrequent Visitor
Getting forbidden error when trying to create a workspace using the dotnet core SDK
I am using the dotnet core SDK with a service principal and I need to create a workspace. My code looks like this var credentials = await Token.GetTokenCredentials(clientId, clientSecret, t...
- 2 years ago
I found that my administrator has restricted access.
Anonymous
2 years agoNot applicable
Hi aaronfdsouza ,
As far as I know, we can use API call by a service principal profile to create a new workspace in Power BI Service. For more information see: Service principal profiles in Power BI Embedded.
For more details about this REST API.
Groups - Create Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.