Workspaces - List Workspaces
Returns a list of workspaces the principal can access. Use the roles query parameter to filter results by the principal workspace role.
This API supports pagination.
Required Delegated Scopes
Workspace.Read.All or Workspace.ReadWrite.All
Microsoft Entra supported identities
This API supports the Microsoft identities listed in this section.
Identity | Support |
---|---|
User | Yes |
Service principal | Yes |
Managed identities | Yes |
Interface
GET https://api.fabric.microsoft.com/v1/workspaces
GET https://api.fabric.microsoft.com/v1/workspaces?roles={roles}&continuationToken={continuationToken}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
continuation
|
query |
string |
A token for retrieving the next page of results. |
|
roles
|
query |
string |
A list of roles. Separate values using a comma. If not provided, all workspaces are returned. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Request completed successfully. |
|
Other Status Codes |
Common error codes:
|
Examples
List workspaces example |
List workspaces with continuation example |
List workspaces with roles filter example |
List workspaces example
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces
Sample response
{
"value": [
{
"id": "fa9ad228-3e6b-44d4-b5f4-e275f337afa9",
"displayName": "My workspace",
"description": "",
"type": "Personal"
},
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"displayName": "Marketing",
"description": "A workspace used by the marketing team",
"type": "Workspace"
},
{
"id": "f2d70dc6-8f3e-4f2c-b00e-e2d336d7d711",
"displayName": "Finance",
"description": "A workspace used by the finance team",
"type": "Workspace",
"capacityId": "171018af-1531-4e61-942a-74f024b7f9fd"
}
]
}
List workspaces with continuation example
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces
Sample response
{
"value": [
{
"id": "fa9ad228-3e6b-44d4-b5f4-e275f337afa9",
"displayName": "My workspace",
"description": "",
"type": "Personal"
},
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"displayName": "Marketing",
"description": "A workspace used by the marketing team",
"type": "Workspace"
},
{
"id": "f2d70dc6-8f3e-4f2c-b00e-e2d336d7d711",
"displayName": "Finance",
"description": "A workspace used by the finance team",
"type": "Workspace",
"capacityId": "171018af-1531-4e61-942a-74f024b7f9fd"
}
],
"continuationToken": "LDEsMTAwMDAwLDA%3D",
"continuationUri": "https://api.fabric.microsoft.com/v1/workspaces?continuationToken=LDEsMTAwMDAwLDA%3D"
}
List workspaces with roles filter example
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces?roles=Admin,Member,Contributor,Viewer
Sample response
{
"value": [
{
"id": "fa9ad228-3e6b-44d4-b5f4-e275f337afa9",
"displayName": "Admins workspace",
"description": "A workspace for admins",
"type": "Personal"
},
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"displayName": "Members workspace",
"description": "A workspace for members",
"type": "Workspace"
},
{
"id": "0c02a0cd-71bc-410f-aa05-5a7bc98765f7",
"displayName": "Contributors workspace",
"description": "A workspace for contributors",
"type": "Workspace"
},
{
"id": "99d58687-8903-4dbd-8a78-40f95dca7177",
"displayName": "Viewers workspace",
"description": "A workspace for viewers",
"type": "Workspace"
}
]
}
Definitions
Name | Description |
---|---|
Error |
The error related resource details object. |
Error |
The error response. |
Error |
The error response details. |
Workspace |
A workspace object. |
Workspaces | |
Workspace |
A workspace type. Additional workspace types may be added over time. |
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. |
message |
string |
A human readable representation of the error. |
moreDetails |
List of additional error details. |
|
relatedResource |
The error related resource details. |
|
requestId |
string |
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. |
relatedResource |
The error related resource details. |
Workspace
A workspace object.
Name | Type | Description |
---|---|---|
capacityId |
string |
The ID of the capacity the workspace is assigned to. |
description |
string |
The workspace description. |
displayName |
string |
The workspace display name. |
id |
string |
The workspace ID. |
type |
The workspace type. |
Workspaces
Name | Type | Description |
---|---|---|
continuationToken |
string |
The token for the next result set batch. If there are no more records, it's removed from the response. |
continuationUri |
string |
The URI of the next result set batch. If there are no more records, it's removed from the response. |
value |
A list of workspaces. |
WorkspaceType
A workspace type. Additional workspace types may be added over time.
Name | Type | Description |
---|---|---|
AdminWorkspace |
string |
Admin monitoring workspace. Contains admin reports such as the audit report and the usage and adoption report. |
Personal |
string |
My folder or My workspace used to manage user items. |
Workspace |
string |
Workspace used to manage the Fabric items. |