Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Identity__update Current Tenant User Role

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__updateCurrentTenantUserRole(roles: [String!]!, userId: ID!): Boolean!

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

roles*[String!]!
userId*ID!

Returns

identity__updateCurrentTenantUserRole*Boolean!
Example Request
mutation Identity__updateCurrentTenantUserRole($roles: [String!]!, $userId: ID!) {  identity__updateCurrentTenantUserRole(roles: $roles, userId: $userId)}
Variables
{  "roles": [    "string"  ],  "userId": "1"}
Example Response
{  "data": {    "identity__updateCurrentTenantUserRole": true  }}