AlmondTill/G3N API

effectivePermissions

query · in the family Reading your records

What it does

This page — the full picture of what a user may and may not do at an organization.

The verification mechanism: the full effective-permission map for an in-tenant (user, organization) pair — every registry operation evaluated by the same flat algorithm the future gate uses (default-DENY → union allow across the user's active roles at the org → disallow-ALWAYS-wins), each entry attributing its contributing descriptors to their roles. Requires authentication; reads null when the user OR the organization is cross-tenant or absent. Previews descriptor evaluation only — no capability/dark-org/lifecycle composition (the ruled cutover slice).

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:

Arguments

NameTypeRequiredNotes
userIdID 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 ExampleEffectivePermissions($userId: ID!, $organizationId: ID!) {
  effectivePermissions(userId: $userId, organizationId: $organizationId) {
    authorityTier
  }
}

Variables:

json
{
  "userId": "01900000-0000-7000-8000-e0a63e120000",
  "organizationId": "01900000-0000-7000-8000-1971e30a0000"
}

Example response

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

Errors this call can answer

Used in