v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Get user

Returns the specified user details

get/users/{user_id}

Path parameters

user_idinteger required

The ID of the user

Response

User details

idinteger

The user ID.

full_namestring

The full name of the user.

emailstring

The email of the user.

activeinteger

0 or 1 integer indicating if the user is active.

last_login_timestampinteger

Unix timestamp indicating the last time this user logged in.

rolestring

String representing the role of this user. Can be 'admin', 'default' or 'team_only'.

read_onlyinteger

0 or 1 integer indicating if the user is has only read rights.

auth_typestring

String representing the auth type of this user. Can be 'github', 'gitlab', 'bitbucket', 'google', 'office365' or 'saml'

Example response

{
  "id": 1,
  "full_name": "Wendy Snutz",
  "email": "wendysnutz@gmail.com",
  "active": 1,
  "last_login_timestamp": 1720059659,
  "role": "default",
  "read_only": 0,
  "auth_type": "github",
  "permissions": {
    "can_ignore_or_snooze_issues": 1,
    "can_change_issue_severity": 1,
    "can_manage_teams": 0,
    "can_manage_clouds": 0,
    "can_manage_containers": 0,
    "can_manage_domains": 0,
    "can_manage_repos": 0,
    "can_manage_code_quality": 0,
    "can_export_data": 0,
    "can_manage_endpoint_protection": 0,
    "can_manage_pentests": 0
  }
}