SmartGare
API referenceEndpoints

Give a temporary password

When the station cannot send e-mails, replaces the user's password with a temporary one drawn by SmartGare, after the named supervisor has recognised the person, and answers it this once; the user chooses their own at the next sign-in. Refused when a reset link can be sent instead. **Required permission:** `identity.user:write`

POST/identity/v1/users/{id}/temporary-password

When the station cannot send e-mails, replaces the user's password with a temporary one drawn by SmartGare, after the named supervisor has recognised the person, and answers it this once; the user chooses their own at the next sign-in. Refused when a reset link can be sent instead.

Required permission: identity.user:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Identity provider user id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*IssueTemporaryPasswordRequest

Response Body

*/*

curl -X POST "https://example.com/identity/v1/users/string/temporary-password" \  -H "Content-Type: application/json" \  -d '{    "recognized_by": "string"  }'
{  "temporary_password": "string",  "user": {    "email": "string",    "first_name": "string",    "id": "string",    "last_name": "string",    "last_sign_in": "2019-08-24T14:15:22Z",    "phone": "string",    "roles": [      "string"    ],    "status": "ACTIVE",    "username": "string"  }}