Skip to main content

Get a recovery code credential

GET 

/nevisidm/api/core/v1/:clientExtId/users/:userExtId/recovery-codes

Since: 2.78.0

Required permission(s): AccessControl.CredentialView or SelfAdmin Role

Returns the recovery code credential of the user with the given external ID, belonging to the specified client. The response includes all 16 recovery codes with their usage status, credential metadata, state information, and login statistics.

Supports self-admin mode with JWT token validation, allowing a user to retrieve their own recovery code credential.

Request

Path Parameters

    clientExtId stringrequired

    External ID of the client.

    Example: client-123
    userExtId stringrequired

    External ID of the user.

    Example: user-123

Responses

Recovery code credential found

Schema
    created string

    Creation date of the entity.

    lastModified string

    Date when the entity was last modified.

    version int32

    Version used for optimistic locking.

    extId string

    The external ID of the credential.

    userExtId string

    The external ID of the user to whom the credential belongs.

    policyExtId string

    The external ID of the used policy.

    stateName string

    Possible values: [initial, active, tmp-locked, fail-locked, reset-code, admin-changed, disabled, archived]

    The state of the credential. Available values: initial, active, tmp-locked, fail-locked, reset-code, admin-changed, disabled, archived.

    stateChangeReason string

    Reason for the last state change of the password.

    stateChangeDetail string

    Reason detail for the last state change of the password.

    lastSuccessfulLoginDate string

    Timestamp of last successful login.

    successfulLoginCount int32

    Counts successful logins with this credential since last initialization or reset.

    lastFailedLoginDate string

    Date of last non-technical login failure, for example, wrong password.

    failedLoginCount int32

    Counts non-technical login failures since the last successful login, initialization or reset.

    modificationComment string

    Textual comment regarding the last modification.

    type string

    Possible values: [Password, Certificate, SecurID User Mapping, Ticket Authorization, Safeword User Mapping, OTP Card, Temporary Strong Password, Generic Credential, Kerberos, mTan, Vasco, PUK, URL Ticket, DevicePassword, MobileSignature, SAML Federation, Security Questions, Context Password, OATH, FIDO UAF Authenticator, Recovery Code, FIDO2 Authenticator]

    Type of credential.

    validity object

    Describes the validity period of the password.

    from string

    Start date of the entity's validity in ISO format.

    to string

    End date of the entity's validity in ISO format.

    codes object[]

    List of 16 recovery codes and their usage dates. Each code can only be used once.

  • Array [
  • code string

    The recovery code value. Each code follows the format of four groups of four alphanumeric characters separated by hyphens.

    usageDate string

    The date when the code was used in ISO format. Null if the code has not been used yet.

  • ]
Loading...