Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.