Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Identity__current Tenant Roles

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

QUERYidentity__currentTenantRoles: [Role!]!

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

Returns

  1. identity__currentTenantRoles
_id*ID!
assignedUserCount?Int
createdAt*DateTime!

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

name*String!
permissions*
tenant?String
updatedAt*DateTime!

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

Example Request
query Identity__currentTenantRoles {  identity__currentTenantRoles {    _id    assignedUserCount    createdAt    name    permissions {      actions      collectionName    }    tenant    updatedAt  }}
Example Response
{  "data": {    "identity__currentTenantRoles": [      {        "_id": "1",        "assignedUserCount": 10,        "createdAt": "<DateTime>",        "name": "string",        "permissions": [          {            "actions": [              "string"            ],            "collectionName": "string"          }        ],        "tenant": "string",        "updatedAt": "<DateTime>"      }    ]  }}