Skip to main content

Me

View as Markdown

Me object​

This API allows retrieving information about the current user, service principal, or group whose permissions are being used to make the request.

namestringBetaIDImmutable

The Me resource name, in the format accounts/{account_id}/me on an account host or me on a workspace host.

userobjectBetaOutput only

The principal is a user.

Show child attributesHide child attributes
namestringIDImmutable

The resource name of the user, in one of these formats:

  • Account APIs: accounts/{account_id}/users/{user_id}
  • Workspace APIs: users/{user_id}

Examples:

  • accounts/5d6c9a3e-2b4f-4e8a-9c1d-7f0b2a6e4c13/users/6412798305127934 : Account APIs
  • users/6412798305127934 : Workspace APIs
parentstringOutput onlyImmutable

The resource name of the account that contains the user, in the format accounts/{account_id}. Workspace APIs return the same format.

account_idstringOutput onlyImmutable

The ID of the account that contains the user.

user_idstringOutput onlyImmutable

The Databricks ID of the user.

external_idstring

The ID of the user in your identity provider (IdP).

usernamestringImmutable

The user's username, which is their email address. It can't be changed after the user is created.

full_nameobject

The user's name.

Show child attributesHide child attributes
given_namestring

The user's given (first) name.

family_namestring

The user's family (last) name.

account_user_statusstring

Whether the user is active in the account. New users are active unless you set this to INACTIVE.

Values:

  • ACTIVE
  • INACTIVE
groupobjectBetaOutput only

The principal is a group.

Show child attributesHide child attributes
namestringIDImmutable

The resource name of the group, in one of these formats:

  • Account APIs: accounts/{account_id}/groups/{group_id}
  • Workspace APIs: groups/{group_id}

Examples:

  • accounts/5d6c9a3e-2b4f-4e8a-9c1d-7f0b2a6e4c13/groups/8763426537429053 : Account APIs
  • groups/8763426537429053 : Workspace APIs
parentstringOutput onlyImmutable

The resource name of the account that contains the group, in the format accounts/{account_id}. Workspace APIs return the same format.

account_idstringOutput onlyImmutable

The ID of the account that contains the group.

group_idstringOutput onlyImmutable

The Databricks ID of the group. It is a numeric string that Databricks assigns when the group is created, and it is the {group_id} segment of name.

external_idstring

The ID of the group in your identity provider (IdP).

group_namestring

The display name of the group. It must be unique in the account, must not be blank, and must be shorter than 255 characters. Databricks trims surrounding whitespace. You can't use the name of a group that Databricks manages, such as admins or users.

service_principalobjectBetaOutput only

The principal is a service principal.

Show child attributesHide child attributes
namestringIDImmutable

The resource name of the service principal, in one of these formats:

  • Account APIs: accounts/{account_id}/service-principals/{service_principal_id}
  • Workspace APIs: service-principals/{service_principal_id}

Examples:

  • accounts/5d6c9a3e-2b4f-4e8a-9c1d-7f0b2a6e4c13/service-principals/3056218749301825 : Account APIs
  • service-principals/3056218749301825 : Workspace APIs
parentstringOutput onlyImmutable

The resource name of the account that contains the service principal, in the format accounts/{account_id}. Workspace APIs return the same format.

account_idstringOutput onlyImmutable

The ID of the account that contains the service principal.

service_principal_idstringOutput onlyImmutable

The Databricks ID of the service principal.

external_idstring

The ID of the service principal in your identity provider (IdP).

application_idstringImmutable

The service principal's application ID, a UUID. If you don't set it when you create the service principal, Databricks generates one. It must be unique in the account and can't be changed.

display_namestring

The service principal's display name.

account_sp_statusstring

Whether the service principal is active in the account.

Values:

  • ACTIVE
  • INACTIVE
identity_attributesobjectBetaOutput only

Identity attributes for a user or service principal, with each key mapped to a list of strings. Includes allowed predefined and custom attributes with stored values. Unset attributes are omitted; groups have an empty map. Country uses an ISO 3166-1 alpha-2 code, and manager contains the IdP-provided value without user resolution.

display_namestringBetaOutput only

The user's given and family names joined with a space, when available. This field is absent for groups and service principals.

Get the principal's identity view Beta​

GET /api/2.0/identity/{name=accounts/*/me}

1 more path

GET /api/2.0/identity/{name=me}

Gets the principal's identity.

API scopes: identity

Parameters​

namestringRequiredpath

The Me resource name. Use accounts/{account_id}/me on an account host or me on a workspace host.

Response​

Returns the Me object.

List the principal's parent groups Beta​

GET /api/2.0/identity/{parent=accounts/*/me}/transitive-parent-groups

1 more path

GET /api/2.0/identity/{parent=me}/transitive-parent-groups

Lists direct and inherited parent groups for the principal.

API scopes: identity

Parameters​

parentstringRequiredpath

The parent Me view. Use accounts/{account_id}/me on an account host or me on a workspace host.

page_sizeint32query

Omitted or zero defaults to 1,000. Values above 1,000 are clamped to 1,000. Negative values return an INVALID_PARAMETER_VALUE error.

page_tokenstringquery

Cursor from a prior page. Use it with the same parent and request context to continue the listing; the page size may change between requests.

Response​

me_transitive_parent_groupsarray of object

The direct and inherited parent groups visible in the current request context.

Show child attributesHide child attributes
namestringIDImmutable

The parent group resource name, in the format accounts/{account_id}/me/transitive-parent-groups/{group_id} on an account host or me/transitive-parent-groups/{group_id} on a workspace host.

account_idstringOutput only

The account ID of the parent group.

group_idstringOutput only

The internal ID of the parent group.

external_idstringOutput only

The external ID of the parent group in the customer's identity provider, if present.

group_namestringOutput only

The name of the parent group.

next_page_tokenstring

A token for the next page. Omitted when there are no more groups.

Get one of the principal's parent groups Beta​

GET /api/2.0/identity/{name=accounts/*/me/transitive-parent-groups/*}

1 more path

GET /api/2.0/identity/{name=me/transitive-parent-groups/*}

Gets one direct or inherited parent group of the principal. Returns a NOT_FOUND error if the group is not a direct or inherited parent group of the principal.

API scopes: identity

Parameters​

namestringRequiredpath

The parent group name. Use accounts/{account_id}/me/transitive-parent-groups/{group_id} on an account host or me/transitive-parent-groups/{group_id} on a workspace host.

Response​

namestringIDImmutable

The parent group resource name, in the format accounts/{account_id}/me/transitive-parent-groups/{group_id} on an account host or me/transitive-parent-groups/{group_id} on a workspace host.

account_idstringOutput only

The account ID of the parent group.

group_idstringOutput only

The internal ID of the parent group.

external_idstringOutput only

The external ID of the parent group in the customer's identity provider, if present.

group_namestringOutput only

The name of the parent group.