Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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, tenantId);
using (PowerBIClient client = new PowerBIClient(credentials))
{
GroupCreationRequest request = new GroupCreationRequest
{
Name = "MyNewWorkspace"
};
await client.Groups.CreateGroupAsync(request);
}
The service principal corresponding to the client has the following API permissions
Is there some admin level setting that I need to be aware of?
Solved! Go to Solution.
I found that my administrator has restricted access.
I found that my administrator has restricted access.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |