Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Error while adding service prinncipal through REST api

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.

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

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

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-eachen-msft
Community Support
Community Support

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

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.