Workspace - Adds a user to a workspace

Adds a user to a Power BI workspace with the specified access level based on the provided details.

post
Authorizations
Path parameters
tenantIdstring · uuidRequired

Enter the ID of an existing tenant

Query parameters
versionstringOptional

The requested API version

Default: 1.0
Body

Class for storing workspace role assignment details.

userIdentifierstring | nullableOptional

A public property of type string that has both a getter and a setter method, which allows for getting and setting the value of the UserIdentifier property.

groupUserAccessRightstring · enumOptional

Enum for group user access right.

Possible values:
principalTypestring · enumOptional

Enum for principal type.

Possible values:
Responses
200
Success: User successfully added to the workspace.
post
POST /tenants/{tenantId}/pbiUsers HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 78

{
  "userIdentifier": "text",
  "groupUserAccessRight": "None",
  "principalType": "None"
}
{
  "message": "Success Message",
  "statusCode": 200
}

Last updated