# Get the principal's identity view

Launch stage: Beta

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

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

Gets the principal's identity.

API scopes: identity

## Path parameters

- `name` (string, required)
  The Me resource name. Use accounts/{account_id}/me on an account host or
   me on a workspace host.

## Returns

Returns the Me object.

## Response

```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"
}
```

