Workspaces - Provision Identity
Provision a workspace identity for a workspace.
This API supports long running operations (LRO).
Permissions
The caller must have an admin role in the workspace.
Required Delegated Scopes
Workspace.ReadWrite.All
Throttling limits
| Limit Type | Value |
|---|---|
| Unified Quota for Platform APIs | 500 calls/min |
| API limit | 10 calls/min |
Microsoft Entra supported identities
This API supports the Microsoft identities listed in this section.
| Identity | Support |
|---|---|
| User | Yes |
| Service principal and Managed identities | Yes |
Interface
POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/provisionIdentity
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
workspace
|
path | True |
string (uuid) |
The ID of the workspace. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Successfully provisioned |
|
| 202 Accepted |
Request accepted, identity provisioning in progress Headers
|
|
| 429 Too Many Requests |
The service rate limit was exceeded. The server returns a Headers Retry-After: integer |
|
| Other Status Codes |
Common error codes:
|
Examples
Provision workspace identity example
Sample request
POST https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff227/provisionIdentity
Sample response
{
"applicationId": "00a4a8f9-78d3-41b3-b87a-6ae5271c8d0d",
"servicePrincipalId": "5ba4ae58-d402-45c6-a848-0253e834fd78",
"identityReference": {
"referenceType": "ById",
"workspaceId": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"itemId": "4a1d86e3-d740-4610-b32d-7bae87d33e9d"
}
}
Location: https://api.fabric.microsoft.com/v1/operations/0acd697c-1550-43cd-b998-91bfbfbd47c6
x-ms-operation-id: 0acd697c-1550-43cd-b998-91bfbfbd47c6
Retry-After: 5
Definitions
| Name | Description |
|---|---|
|
Error |
A structured parameter providing additional machine-readable context about an error. |
|
Error |
The error related resource details object. |
|
Error |
The error response. |
|
Error |
The error response details. |
|
Item |
An item reference by ID object. |
|
Item |
An item reference by variable. |
|
Item |
The item reference type. Additional |
|
Workspace |
A workspace identity object. |
ErrorParameter
A structured parameter providing additional machine-readable context about an error.
| Name | Type | Description |
|---|---|---|
| message |
string |
A human-readable description of the parameter's meaning. |
| name |
string |
The parameter identifier. |
| value |
string |
The parameter value. |
ErrorRelatedResource
The error related resource details object.
| Name | Type | Description |
|---|---|---|
| resourceId |
string |
The resource ID that's involved in the error. |
| resourceType |
string |
The type of the resource that's involved in the error. |
ErrorResponse
The error response.
| Name | Type | Description |
|---|---|---|
| errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
| isRetriable |
boolean |
When true, the request can be retried. Use the |
| message |
string |
A human readable representation of the error. |
| moreDetails |
List of additional error details. |
|
| parameters |
Structured parameters providing additional machine-readable context about the error. |
|
| relatedResource |
The error related resource details. |
|
| requestId |
string (uuid) |
ID of the request associated with the error. |
ErrorResponseDetails
The error response details.
| Name | Type | Description |
|---|---|---|
| errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
| message |
string |
A human readable representation of the error. |
| parameters |
Structured parameters providing additional machine-readable context about the error. |
|
| relatedResource |
The error related resource details. |
ItemReferenceById
An item reference by ID object.
| Name | Type | Description |
|---|---|---|
| itemId |
string (uuid) |
The ID of the item. |
| referenceType |
string:
By |
The item reference type. |
| workspaceId |
string (uuid) |
The workspace ID of the item. |
ItemReferenceByVariable
An item reference by variable.
| Name | Type | Description |
|---|---|---|
| referenceType |
string:
By |
The item reference type. |
| variableReference |
string |
A variable reference string that specifies the Variable Library and the variable name inside it. Format: |
ItemReferenceType
The item reference type. Additional ItemReferenceType types may be added over time.
| Value | Description |
|---|---|
| ById |
The item is referenced by its ID. |
| ByVariable |
The item is referenced by a variable. |
WorkspaceIdentity
A workspace identity object.
| Name | Type | Description |
|---|---|---|
| applicationId |
string (uuid) |
The application ID. |
| identityReference | ItemReference: |
The item reference for the workspace identity. Only ItemReferenceById is supported. |
| servicePrincipalId |
string (uuid) |
The service principal ID. |