User

Change password

Change password of current user.

Due to security reasons, user passwords cannot be set directly using the standard CRUD operations. Instead, the following endpoints can be used for resetting and changing passwords.

Password requirements:

  • Length: 12–64 characters
  • May not be similar to username
  • May not contain common words
  • May not be numeric only
  • Must pass complexity check
post/api/v1/auth/password/change

Request body

new_password1string required

New password

new_password2string required

New password confirmation (must match new_password1)

old_passwordstring required

Current password

Response

OK

idinteger required

ID of the user

urlstring uri required

URL of the user

first_namestring required

First name of the user

last_namestring required

Last name of the user

emailstring email required

Email of the user

phone_numberstring nullable required

Phone number of the user

passwordstring required

Password (not shown on API)

date_joinedstring date-time required

Date of user join

usernamestring required

Username of a user

groupsstring[] required

List of user role (permission groups)

organizationstring uri required

Organization URL.

queuesstring[] required

List of queues user is assigned to

is_activeboolean required

Whether user is enabled or disabled

last_loginstring date-time nullable required

Date of last login

ui_settingsobject required

User-related frontend UI settings (e.g. locales). Rossum internal.

metadataMetadata required

Client data. May be used to store e.g. external system object IDs. See Metadata for more details.

oidc_idstring nullable required

OIDC provider id used to match Rossum user (displayed only to admin user)

auth_type'sso' | 'password' required

Authorization method, can be sso or password. This field can be edited only by admin.

deletedboolean required

Whether a user is deleted

Example response

{
  "id": 10775,
  "url": "https://example.rossum.app/api/v1/users/10775",
  "first_name": "John",
  "last_name": "Doe",
  "email": "john-doe@east-west-trading.com",
  "phone_number": "+1-212-456-7890",
  "date_joined": "2018-09-19T13:44:56.000000Z",
  "username": "john-doe@east-west-trading.com",
  "groups": [
    "https://example.rossum.app/api/v1/groups/3"
  ],
  "organization": "https://example.rossum.app/api/v1/organizations/406",
  "queues": [
    "https://example.rossum.app/api/v1/queues/8199"
  ],
  "is_active": true,
  "last_login": "2019-02-07T16:20:18.652253Z",
  "ui_settings": {},
  "metadata": {
    "some_key": "some_value"
  },
  "auth_type": "password"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.