Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Identity__add User To Current Tenant

Requires a signed-in staff user. Needs the `identity__User` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONidentity__addUserToCurrentTenant(input: AddUserToTenantInput!): AddUserToTenantResponse!

Requires a signed-in staff user. Needs the identity__User update permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

input*

Returns

  1. identity__addUserToCurrentTenant
success*Boolean!
temporaryPassword?String
Example Request
mutation Identity__addUserToCurrentTenant($input: AddUserToTenantInput!) {  identity__addUserToCurrentTenant(input: $input) {    success    temporaryPassword  }}
Variables
{  "input": {    "email": "string",    "roles": [      "string"    ]  }}
Example Response
{  "data": {    "identity__addUserToCurrentTenant": {      "success": true,      "temporaryPassword": "string"    }  }}