Stytch · Schema

api_b2b_rbac_v1_Policy

AuthenticationIdentityPasswordlessSecurityB2BConnected AppsMCPAI AgentsDeveloper Tools

Properties

Name Type Description
roles array An array of [Role objects](https://stytch.com/docs/b2b/api/rbac-role-object).
resources array An array of [Resource objects](https://stytch.com/docs/b2b/api/rbac-resource-object).
scopes array An array of [Scope objects](https://stytch.com/docs/b2b/api/rbac-scope-object).
View JSON Schema on GitHub

JSON Schema

stytch-api-b2b-rbac-v1-policy-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/api_b2b_rbac_v1_Policy",
  "title": "api_b2b_rbac_v1_Policy",
  "type": "object",
  "properties": {
    "roles": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/api_b2b_rbac_v1_PolicyRole"
      },
      "description": "An array of [Role objects](https://stytch.com/docs/b2b/api/rbac-role-object)."
    },
    "resources": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/api_b2b_rbac_v1_PolicyResource"
      },
      "description": "An array of [Resource objects](https://stytch.com/docs/b2b/api/rbac-resource-object)."
    },
    "scopes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/api_b2b_rbac_v1_PolicyScope"
      },
      "description": "An array of [Scope objects](https://stytch.com/docs/b2b/api/rbac-scope-object)."
    }
  },
  "required": [
    "roles",
    "resources",
    "scopes"
  ]
}