Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!