# The Me object

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

## Attributes

- `name` (string, Beta, ID, Immutable)
  The Me resource name, in the format accounts/{account_id}/me on an account host or me on a
   workspace host.
- `user` (object, Beta, Output only)
  The principal is a user.
  - `name` (string, ID, Immutable)
    The resource name of the user, in one of these formats:
       - Account APIs: `accounts/{account_id}/users/{user_id}`
       - Workspace APIs: `users/{user_id}`
    Example: `accounts/5d6c9a3e-2b4f-4e8a-9c1d-7f0b2a6e4c13/users/6412798305127934` : Account APIs
    Example: `users/6412798305127934` : Workspace APIs
  - `parent` (string, Output only, Immutable)
    The resource name of the account that contains the user, in the format
     `accounts/{account_id}`. Workspace APIs return the same format.
  - `account_id` (string, Output only, Immutable)
    The ID of the account that contains the user.
  - `user_id` (string, Output only, Immutable)
    The Databricks ID of the user.
  - `external_id` (string)
    The ID of the user in your identity provider (IdP).
  - `username` (string, Immutable)
    The user's username, which is their email address. It can't be changed after the user is
     created.
  - `full_name` (object)
    The user's name.
    - `given_name` (string)
      The user's given (first) name.
    - `family_name` (string)
      The user's family (last) name.
  - `account_user_status` (string)
    Whether the user is active in the account. New users are active unless you set this to
     `INACTIVE`.
    Possible values:
    - `ACTIVE`
    - `INACTIVE`
- `group` (object, Beta, Output only)
  The principal is a group.
  - `name` (string, ID, Immutable)
    The resource name of the group, in one of these formats:
       - Account APIs: `accounts/{account_id}/groups/{group_id}`
       - Workspace APIs: `groups/{group_id}`
    Example: `accounts/5d6c9a3e-2b4f-4e8a-9c1d-7f0b2a6e4c13/groups/8763426537429053` : Account APIs
    Example: `groups/8763426537429053` : Workspace APIs
  - `parent` (string, Output only, Immutable)
    The resource name of the account that contains the group, in the format
     `accounts/{account_id}`. Workspace APIs return the same format.
  - `account_id` (string, Output only, Immutable)
    The ID of the account that contains the group.
  - `group_id` (string, Output only, Immutable)
    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_id` (string)
    The ID of the group in your identity provider (IdP).
  - `group_name` (string)
    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_principal` (object, Beta, Output only)
  The principal is a service principal.
  - `name` (string, ID, Immutable)
    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}`
    Example: `accounts/5d6c9a3e-2b4f-4e8a-9c1d-7f0b2a6e4c13/service-principals/3056218749301825` : Account APIs
    Example: `service-principals/3056218749301825` : Workspace APIs
  - `parent` (string, Output only, Immutable)
    The resource name of the account that contains the service principal, in the format
     `accounts/{account_id}`. Workspace APIs return the same format.
  - `account_id` (string, Output only, Immutable)
    The ID of the account that contains the service principal.
  - `service_principal_id` (string, Output only, Immutable)
    The Databricks ID of the service principal.
  - `external_id` (string)
    The ID of the service principal in your identity provider (IdP).
  - `application_id` (string, Immutable)
    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_name` (string)
    The service principal's display name.
  - `account_sp_status` (string)
    Whether the service principal is active in the account.
    Possible values:
    - `ACTIVE`
    - `INACTIVE`
- `identity_attributes` (object, Beta, Output 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_name` (string, Beta, Output only)
  The user's given and family names joined with a space, when available.
   This field is absent for groups and service principals.

## Example

```json
{
  "name": "string",
  "user": {
    "name": "string",
    "parent": "string",
    "account_id": "string",
    "user_id": "string",
    "external_id": "string",
    "username": "string",
    "full_name": {},
    "account_user_status": "ACTIVE"
  },
  "group": {
    "name": "string",
    "parent": "string",
    "account_id": "string",
    "group_id": "string",
    "external_id": "string",
    "group_name": "string"
  },
  "service_principal": {
    "name": "string",
    "parent": "string",
    "account_id": "string",
    "service_principal_id": "string",
    "external_id": "string",
    "application_id": "string",
    "display_name": "string",
    "account_sp_status": "ACTIVE"
  },
  "identity_attributes": {},
  "display_name": "string"
}
```


