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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Power BI Groups Admin API issues

Hi, 

 

we have been experimenting power BI Admin API. I have a global admin user in office 365 which I generate tokens with through a power bi app. I gave every single permission to power bi app although I do not have to normally. I did grant permisison so I can see all claims in jwt token, we definitely dont have any problem with authentication. In fact it is worth to mention that regarding to documentation I do not have to give global admin role to user, power bi service admin role should be enough but it did not work either. I had to give global admin role which is not realistic approach. It could be nice if team could look into that as well.

 

Issue first: If you try to add user to a group, throws UnKnownError.

 

POST /v1.0/myorg/admin/groups/xxxx/users/ HTTP/1.1
Host: api.powerbi.com
Authorization: Bearer xxxxx
Content-Type: application/json

 

{
"emailAddress": "abdullah.kuzhan@xxx.com",
"groupUserAccessRight": "Member"
}

  

Response: 

{
"error": {
"code": "UnknownError",
"pbi.error": {
"code": "UnknownError",
"parameters": {},
"details": []
}
}
}

 

 

 

Issue second: If you try to update a group, throws PowerBIEntityNotFound.

 

PATCH /v1.0/myorg/admin/groups/xxx  HTTP/1.1
Host: api.powerbi.com
Authorization: Bearer xxx 

Content-Type: application/json

{
"description": "Test"
}

 

Response:

{
"error": {
"code": "PowerBIEntityNotFound",
"pbi.error": {
"code": "PowerBIEntityNotFound",
"parameters": {},
"details": []
}
}
}

 

 

 

Issue third: If you try to delete a user from group, returns 200 but does not do the job. We can see user is still there

DELETE /v1.0/myorg/admin/groups/xxx/users/abdullah.kuzhan@xxx.com HTTP/1.1
Host: api.powerbi.com
Authorization: Bearer xxxx
Content-Type: application/json

Response:

200 OK

 

 

Could you please raise it with power bi team? 

 

Best regards.

Status: Accepted
Comments
v-jiascu-msft
Employee

Hi @Anonymous,

 

Thank you for the post. I reproduced these issues. I will update later.

 

 

Best Regards,

Dale

v-jiascu-msft
Employee

Hi,

 

Related reports IDs: CRI 77108266, CRI 77108101, CRI 77107867.

 

 

Best Regards,

Dale

Vicky_Song
Impactful Individual
Status changed to: Accepted
 
v-jiascu-msft
Employee

Hi @Anonymous,

 

I have gotten responses from the Product Team:

 

This API only supports preview workspaces (v2) and not workspaces based on Office 365 groups (v1) by design. The documentation will be modified and the error message will be improved.

 

Best Regards,

Dale

Anonymous
Not applicable

Thanks for the reply @v-jiascu-msft, we started to experiment workspaces v2 but first fundamental issue is you can not create workspace v2 with power BI APIs. 

 

  • Admin APIs work for workspace v2. 
  • Groups APIs work for workspace v1. 

I have got almost no option to autmate all deployment process with permissions to workspaces. It is really annoying, is there a plan to release new APIs for new version of workspaces? I want to be able to create workspaces for v2 with APIs so that I can automate it.