Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Identity__send User Credentials

System-admin only. Resets the user's password to a one-time one and emails it; the user must choose a new password on next sign-in. Platform admin only. Needs the `identity__User` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONidentity__sendUserCredentials(where: CommonFindDocumentDto!): SendUserCredentialsResponse!

System-admin only. Resets the user's password to a one-time one and emails it; the user must choose a new password on next sign-in. Platform admin only. Needs the identity__User update permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

where*

Returns

  1. identity__sendUserCredentials
success*Boolean!
temporaryPassword*String!
Example Request
mutation Identity__sendUserCredentials($where: CommonFindDocumentDto!) {  identity__sendUserCredentials(where: $where) {    success    temporaryPassword  }}
Variables
{  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "identity__sendUserCredentials": {      "success": true,      "temporaryPassword": "string"    }  }}