Skip to main content

Create a context password

POST 

/nevisidm/api/core/v1/:clientExtId/users/:userExtId/context-passwords

Since: 2.73.0

Required permission(s): AccessControl.CredentialCreate

Creates a context password credential for the user with the given external ID, belonging to the specified client.

If the associated password policy has resetCodeEnabled set to true, the password is auto-generated and its first part (part 0, length set by the resetCodeLen0 policy parameter) is returned in the passwordFragment field of the response body. The stored password is part 0 followed by part 1 (length set by resetCodeLen1), which is delivered to the user through the configured communication channel. When resetCodeLen1 is 0, the returned value is the complete password. If resetCodeEnabled is false, the password must be provided in the request body and no content is returned.

Each context value must be unique per user. The context is immutable after creation.

In case the password creation fails because the provided password violates password policies, all the related policy violations will be included in the error response.

Request​

Responses​

Context password created, password fragment returned

Response Headers
    Location

    URL of the created resource