# Get workspace access details for a principal

Launch stage: Beta

`GET /api/2.0/identity/{name=accounts/*/workspaces/*/workspace-access-details/*}`

Returns the access details for a principal in a workspace. Allows for checking access details for any
 provisioned principal (user, service principal, or group) in a workspace.
 * Provisioned principal here refers to one that has been synced into Databricks from the customer's IdP or
   added explicitly to Databricks via SCIM/UI.
 Allows for passing in a "view" parameter to control what fields are returned (BASIC by default or FULL).

API scopes: identity

## Path parameters

- `name` (string, required)
  The resource name of the workspace access detail.
   Format: accounts/{account_id}/workspaces/{workspace_id}/workspace-access-details/{principal_id}

## Query parameters

- `view` (string, optional)
  Controls what fields are returned.
  Possible values:
  - `BASIC`
  - `FULL`
  Default: `BASIC`

## Returns

Returns the WorkspaceAccessDetail object.

## Response

```json
{
  "name": "string",
  "principal_id": 0,
  "workspace_id": 0,
  "account_id": "string",
  "principal_type": "USER",
  "access_type": "DIRECT",
  "status": "ACTIVE",
  "permissions": [
    "USER_PERMISSION"
  ]
}
```

