Add data source user (gateways)

 

Updated: June 12, 2017



Request | Response

The Add data source principal operation adds a supplied user to a given data source. This user will then have permission to use the data source.

POST https://api.powerbi.com/v1.0/myorg/gateways/{gateway_id}/datasources/{data_source_id}/users

Header

Authorization: Bearer eyJ0eX ... FWSXfwtQ

Uri parameter

NameDescriptionData Type
gateway_idGuid of the gateway to use. You can get the Gateway id from the Get Gateways operation.String
data_source_idGuid of the data source to get. You can get the Data source id from the Get data sources operation.String

Body schema

{
   "accessRight": "Read", 
   "emailAddress": "user1@contoso.com"
}

Empty

Status code

CodeDescription
200OK. Indicates success.
404Not found
403Unauthorized
500Internal service error
Show: