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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-yuta-msft
Community Support

@ed-freeman ,

 

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

 

Regards,

Jimmy Tao

ed-freeman
Helper II

Hi @v-yuta-msft ,

 

I'm using the new workspace.

 

Regards,

 

Ed