Users
The bearer token can be obtained by creating a ServiceAccount.
Happy response.
Contains a list of Users.
Error object.
GET /api/v1/users HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"groups": [
{
"name": "text",
"display_name": "text",
"sso_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"description": "text",
"user_count": 1,
"sa_count": 1,
"role_count": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
],
"last_seen_at": "2026-01-01T00:00:00.000Z",
"profile": {
"full_name": "text",
"email_address": "text"
},
"is_admin": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
]
}The bearer token can be obtained by creating a ServiceAccount.
Sets the unique name of the new user.
Sets the display name of the new user. If not provided, the value of "name" will be used.
Happy response.
Models an HQ user.
Contains the canonical and unique user's user name. Potentially an implicit reference to a corresponding entity in an external system in case of SSO.
Contains the resource identifier for use in access control policies.
Updates when this user has interaction with the API.
Error object.
POST /api/v1/users HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 83
{
"name": "text",
"display_name": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"groups": [
{
"name": "text",
"display_name": "text",
"sso_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"description": "text",
"user_count": 1,
"sa_count": 1,
"role_count": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
],
"last_seen_at": "2026-01-01T00:00:00.000Z",
"profile": {
"full_name": "text",
"email_address": "text"
},
"is_admin": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}The bearer token can be obtained by creating a ServiceAccount.
Happy response.
Models an HQ user.
Contains the canonical and unique user's user name. Potentially an implicit reference to a corresponding entity in an external system in case of SSO.
Contains the resource identifier for use in access control policies.
Updates when this user has interaction with the API.
Error object.
GET /api/v1/users/{name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"groups": [
{
"name": "text",
"display_name": "text",
"sso_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"description": "text",
"user_count": 1,
"sa_count": 1,
"role_count": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
],
"last_seen_at": "2026-01-01T00:00:00.000Z",
"profile": {
"full_name": "text",
"email_address": "text"
},
"is_admin": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}The bearer token can be obtained by creating a ServiceAccount.
Successful deletion.
No content
Error object.
DELETE /api/v1/users/{name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
The bearer token can be obtained by creating a ServiceAccount.
Updates a user. Absent fields are left untouched.
Updates the display name of the user.
Happy response.
Models an HQ user.
Contains the canonical and unique user's user name. Potentially an implicit reference to a corresponding entity in an external system in case of SSO.
Contains the resource identifier for use in access control policies.
Updates when this user has interaction with the API.
Error object.
PATCH /api/v1/users/{name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"display_name": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"groups": [
{
"name": "text",
"display_name": "text",
"sso_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"description": "text",
"user_count": 1,
"sa_count": 1,
"role_count": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
],
"last_seen_at": "2026-01-01T00:00:00.000Z",
"profile": {
"full_name": "text",
"email_address": "text"
},
"is_admin": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}The bearer token can be obtained by creating a ServiceAccount.
Allows changes of a user's Profile. Absent fields are left untouched.
Contains the users' full name, e.g. Mary Jane Doe.
Contains the users' email address, e.g. mary.jane@doe.net. Note that this is not necessarily the same as the user's name, which often looks like an email address, but is not per se.
Happy response.
Models an HQ user.
Contains the canonical and unique user's user name. Potentially an implicit reference to a corresponding entity in an external system in case of SSO.
Contains the resource identifier for use in access control policies.
Updates when this user has interaction with the API.
Error object.
PATCH /api/v1/users/{name}/profile HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"full_name": "text",
"email_address": "text"
}{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"groups": [
{
"name": "text",
"display_name": "text",
"sso_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"description": "text",
"user_count": 1,
"sa_count": 1,
"role_count": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
],
"last_seen_at": "2026-01-01T00:00:00.000Z",
"profile": {
"full_name": "text",
"email_address": "text"
},
"is_admin": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}The bearer token can be obtained by creating a ServiceAccount.
The name of the user.
Defines the groups a user or service account should be exactly a member of.
Adds the user or service account to the groups (specified by their names).
Removes the user or service account from the groups (specified by their names). If a group is specified in both add_to_groups as well in here, removal wins.
Sets the user or service account memberships to those groups (specified by their names) in an absolute fashion (ensures user/sa will be exactly a member of those), if provided. Cannot be combined with the add_to_groups or remove_from_groups.
User groups membership updated successfully.
Models an HQ user.
Contains the canonical and unique user's user name. Potentially an implicit reference to a corresponding entity in an external system in case of SSO.
Contains the resource identifier for use in access control policies.
Updates when this user has interaction with the API.
Error object.
PUT /api/v1/users/{name}/groups HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 78
{
"add_to_groups": [
"text"
],
"remove_from_groups": [
"text"
],
"set_groups": [
"text"
]
}{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"groups": [
{
"name": "text",
"display_name": "text",
"sso_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"description": "text",
"user_count": 1,
"sa_count": 1,
"role_count": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
],
"last_seen_at": "2026-01-01T00:00:00.000Z",
"profile": {
"full_name": "text",
"email_address": "text"
},
"is_admin": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}The bearer token can be obtained by creating a ServiceAccount.
Happy response.
Represents either a user or service account.
Error object.
GET /api/v1/users/me HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"groups": [
{
"name": "text",
"display_name": "text",
"sso_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"description": "text",
"user_count": 1,
"sa_count": 1,
"role_count": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
],
"last_seen_at": "2026-01-01T00:00:00.000Z",
"profile": {
"full_name": "text",
"email_address": "text"
},
"is_admin": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}The bearer token can be obtained by creating a ServiceAccount.
Happy response.
Models a user's settings.
Error object.
GET /api/v1/users/me/settings HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}The bearer token can be obtained by creating a ServiceAccount.
Allows changes of a user's Settings. Absent fields are left untouched.
Happy response.
Models a user's settings.
Error object.
PATCH /api/v1/users/me/settings HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"data": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}{
"data": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}The bearer token can be obtained by creating a ServiceAccount.
Happy response.
No content
Error object.
DELETE /api/v1/users/me/sessions HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?

