Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I am getting the below error while trying to add service principal throug api https://docs.microsoft.com/en-us/rest/api/power-bi/groups/addgroupuser#code-try-0
Parameter userDetails.PrincipalType is missing or invalid
{
"identifier": "{Service Principle Object ID}",
"groupUserAccessRight": "Admin",
"principalType": "App"
}
Can I know why I am getting this and how do I add service principal through api.
Solved! Go to Solution.
Hi @Anonymous ,
Try "Group" or "User" as principal type.
Here is the document for your reference : https://docs.microsoft.com/en-us/rest/api/power-bi/groups/addgroupuser#principaltype
Hi @Anonymous ,
Try "Group" or "User" as principal type.
Here is the document for your reference : https://docs.microsoft.com/en-us/rest/api/power-bi/groups/addgroupuser#principaltype
| User | Count |
|---|---|
| 16 | |
| 11 | |
| 11 | |
| 8 | |
| 7 |
| User | Count |
|---|---|
| 36 | |
| 33 | |
| 32 | |
| 29 | |
| 20 |