Skip to main content

Get a temporary access code

GET 

/api/web/v1/users/:userid/tempaccesscode

Get the temporary access code for the given user. Caller requires the TEMPACCESSCODE:VIEW permission.

Request

Path Parameters

    userid stringrequired

    The UUID of the user whose temporary access code will be fetched.

Responses

Successful

Schema

    code string

    The actual temporary access code. This value will only be returned if the administrator has the TEMPACCESSCODECONTENTS:VIEW permission.

    createDate date-time

    The date on which this temporary access code was created.

    expired boolean

    A flag indicating if this temporary access code is expired now.

    expiryDate date-time

    The expiry date of this temporary access code. If not set, it never expires.

    id string

    The unique UUID assigned to the temporary access code when it is created.

    maxUses int32

    The maximum number of times this temporary access code can be used. If not set, there are no limits.

    numUses int32

    The number of times this temporary access code has been used.

Loading...