cancel
Showing results for 
Search instead for 
Did you mean: 

Can't add Group using the AddUserAsAdmin API

When using an AD Security Group (not mail-enabled), this admin endpoint doesn't work.

 

For example:

 

A POST to https://api.powerbi.com/v1.0/myorg/admin/groups/{groupId}/users

 

with the body:

 

 

{
  "groupUserAccessRight": "Member",
  "displayName": "<Group_Name>",
  "identifier": "<object_id>",
  "principalType": "Group"
}

 

 

results in the response:

 

 

{
    "error": {
        "code": "InvalidRequest",
        "message": "Parameter PrincipalType or Identifier is missing or invalid"
    }
}

 

 

I'm pretty sure the body of my request is correct, because when I get the list of users for the group, the response for the group is exactly the same as my request body above.

 

Other things to note:

 

 

Why doesn't the Admin API work?

 

Thanks,

 

Ed

Status: New
Comments
Community Support Team

@ed-freeman ,

 

It seems that this api should be used in the new workspace. Which workspace are you using?

 

Regards,

Jimmy Tao

Frequent Visitor

Hi @v-yuta-msft ,

 

I'm using the new workspace.

 

Regards,

 

Ed