Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi!
I am trying to add Service Principal (app registration) to workspace users.
I am using AccessToken generated for PowerBI Service principals with granted permission:
Here is a PowerShell code which I use to add Service Princpal to worksapce users
$AdObjectIdentifier is an Azure ObejctId for App Registarion that I want to add to the worksapce users
I am geting an error:
The remote server returned an error: (403) Forbidden.
{"error":{"code":"InvalidRequest","message":"Failed to get service principal details from AAD."}}
I can add AAD group to workspace (when $AdObjectIdentifier = AAD Obejct ID), but not Service principal, why?
Please, help me to understand this.
Thanks,
Urszula
Hi @Anonymous ,
Note:
Service principals have access to any tenant settings they're enabled for. Depending on your admin settings, this includes specific security groups or the entire organization.
Please check whether you have added your Security Group which has added the service principal as a member into the tenant setting.
You may check the steps in the offical blog to learn more details.
For referencce: Embed Power BI content with service principal and an application secret
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.
@v-rzhou-msft I have checked, group (service princiapl which I wanted to add belongs to this group) are added below developers seetings. Sitll I am getting thsi error. Do you have any advise?
Your tenant admin may need to allow Service Principals to be used in the tenant.
talk to your tenant admin about the settings on your tenant.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
14 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
10 | |
3 | |
3 | |
3 | |
2 |