Skip to main content
GET
/
api
/
{organization_id}
/
users
/
{email}
Get user summary
curl --request GET \
  --url https://api.select.dev/api/{organization_id}/users/{email} \
  --header 'Authorization: Bearer <token>'
{
  "email": "<string>",
  "name": "<string>",
  "identity_provider": "<string>",
  "roles": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "role": "admin",
      "scope": {
        "type": "organization",
        "id": "<string>",
        "name": "<string>"
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "is_default": false,
      "granted_from_team_name": "<string>"
    }
  ],
  "team_memberships": [
    {
      "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "team_name": "<string>",
      "role": "admin",
      "is_all_users_team": false
    }
  ],
  "last_login_at": "2023-11-07T05:31:56Z",
  "last_activity_at": "2023-11-07T05:31:56Z",
  "sso_groups": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

email
string
required

User's email address

organization_id
string
required

Response

Successful Response

Comprehensive user information including roles and team memberships.

email
string
required

The user's email address

name
string | null

The user's display name

identity_provider
string | null

The identity provider used for authentication

roles
PublicUserRole · object[]

All direct roles assigned to the user

team_memberships
TeamMembership · object[]

Teams the user belongs to

last_login_at
string<date-time> | null

When the user last logged in

last_activity_at
string<date-time> | null

When the user was last active

sso_groups
string[] | null

SSO groups from the user's last login