Gateways - Delete Datasource User
Removes the specified user from the specified data source.
Permissions
The user must have gateway admin permissions.
Required Scope
Dataset.ReadWrite.All
Limitations
Virtual network (VNet) gateways aren't supported.
DELETE https://api.powerbi.com/v1.0/myorg/gateways/{gatewayId}/datasources/{datasourceId}/users/{emailAdress}
DELETE https://api.powerbi.com/v1.0/myorg/gateways/{gatewayId}/datasources/{datasourceId}/users/{emailAdress}?profileId={profileId}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
datasource
|
path | True |
string uuid |
The data source ID |
email
|
path | True |
string |
The user's email address or the object ID of the service principal |
gateway
|
path | True |
string uuid |
The gateway ID. When using a gateway cluster, the gateway ID refers to the primary (first) gateway in the cluster. In such cases, gateway ID is similar to gateway cluster ID. |
profile
|
query |
string uuid |
The service principal profile ID to delete |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
Examples
Example
Sample request
DELETE https://api.powerbi.com/v1.0/myorg/gateways/1f69e798-5852-4fdd-ab01-33bb14b6e934/datasources/252b9de8-d915-4788-aaeb-ec8c2395f970/users/john@contoso.com