Workspace External User
A user from your identity provider (IdP), identified by their ID in your IdP. This resource is
read-only. Getting an external user syncs the user's details and group memberships from your
IdP, and adds the user to your account if they aren't already there. To address an external
user, put its resource name in the URL:
GET /api/2.0/identity/accounts/{account_id}/external-users/{external_user_id} in account APIs,
or GET /api/2.0/identity/external-users/{external_user_id} in workspace APIs.
ExternalUser object
A user from your identity provider (IdP), identified by their ID in your IdP. This resource is
read-only. Getting an external user syncs the user's details and group memberships from your
IdP, and adds the user to your account if they aren't already there. To address an external
user, put its resource name in the URL:
GET /api/2.0/identity/accounts/{account_id}/external-users/{external_user_id} in account APIs,
or GET /api/2.0/identity/external-users/{external_user_id} in workspace APIs.
- namestringOutput onlyIDImmutable
The resource name of the external user, in one of these formats:
- Account APIs:
accounts/{account_id}/external-users/{external_user_id} - Workspace APIs:
external-users/{external_user_id}
- Account APIs:
- external_user_idstringOutput only
The ID of the user in your IdP.
- internal_idstringOutput only
The Databricks ID of the user. Use it as the
user_idin the user APIs.
- usernamestringOutput only
The user's username, which is their email address.
- full_nameobjectOutput only
The user's name, from your IdP.
Show child attributesHide child attributes
- given_namestringOutput only
The user's given (first) name.
- family_namestringOutput only
The user's family (last) name.
- account_user_statusstringOutput only
Whether the user is active in the account.
ACTIVEINACTIVE
- account_idstringOutput only
The ID of the account that contains the user.
- display_namestringOutput only
The user's given and family names from your IdP, separated by a space.
Get an external user in the account GA
GET
Gets a user by their ID in your identity provider (IdP) and syncs their details and group memberships from your IdP. If the user isn't in the account that contains this workspace yet, they're added. Requires automatic identity management.
To control how fresh the synced data is, send a Cache-Control request header:
no-cachesyncs from your IdP before the call returns.max-age=<n>, max-stale=0syncs from your IdP before the call returns if the last sync is more than<n>seconds old.
Without the header, the call skips the sync if the last sync is within the default freshness
window. Databricks might sync more often than you request. If you send max-age without
max-stale=0, the call can return the data from the last sync and sync in the background.
Databricks ignores other Cache-Control directives. A forced sync makes the call wait for
your IdP. A forced sync on every call adds load on your IdP and can hit rate limits.
API scopes: identity
Parameters
- namestringRequiredpath
The resource name of the external user, in the format
external-users/{external_user_id}.
Response
Returns the ExternalUser object.