AlmondTill/G3N API

rolePermissions

query · in the family Reading your records

What it does

The full picture of what ONE role may and may not do at an organization — before anyone holds it (the guide’s “show this guide for a different role”).

The peek switch read: the same compile as effectivePermissions over ONE in-tenant role — every registry operation evaluated for that role alone. Read semantics: a cross-tenant or absent role/organization reads null — existence never leaks.

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: Reading your records — Looking up and listing the records of your organization.

Roles that may call it:

What happens

Reads only — changes nothing.

Arguments

NameTypeRequiredNotes
roleIdID ID!yes
organizationIdID ID!yes

Returns

EffectivePermissions — The verification mechanism: (user, org) → the full effective-permission map + which role contributed each descriptor, computed by the same evaluator the future gate uses (preview ≡ enforcement — no second mechanism, no drift). Evaluates descriptors only: it does NOT compose the account-capability / dark-org / user-lifecycle gates.

Example request

graphql
query ExampleRolePermissions($roleId: ID!, $organizationId: ID!) {
  rolePermissions(roleId: $roleId, organizationId: $organizationId) {
    authorityTier
  }
}

Variables:

json
{
  "roleId": "01900000-0000-7000-8000-902b7e390000",
  "organizationId": "01900000-0000-7000-8000-1971e30a0000"
}

Example response

json
{
  "data": {
    "rolePermissions": {
      "authorityTier": "<authority tier>"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer