Stytch · Schema
api_b2b_rbac_v1_PolicyScopePermission
AuthenticationIdentityPasswordlessSecurityB2BConnected AppsMCPAI AgentsDeveloper Tools
Properties
| Name | Type | Description |
|---|---|---|
| resource_id | string | A unique identifier of the RBAC Resource, provided by the developer and intended to be human-readable. A `resource_id` is not allowed to start with `stytch`, which is a special prefix used for Stytch |
| actions | array | A list of permitted actions the Scope is required to take with the provided Resource. You can use `*` as a wildcard to require a Scope permission to use all possible actions related to the Resource. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/api_b2b_rbac_v1_PolicyScopePermission",
"title": "api_b2b_rbac_v1_PolicyScopePermission",
"type": "object",
"properties": {
"resource_id": {
"type": "string",
"description": "A unique identifier of the RBAC Resource, provided by the developer and intended to be human-readable.\n\n A `resource_id` is not allowed to start with `stytch`, which is a special prefix used for Stytch default Resources with reserved `resource_id`s. These include:\n\n * `stytch.organization`\n * `stytch.member`\n * `stytch.sso`\n * `stytch.self`\n\n Check out the [guide on Stytch default Resources](https://stytch.com/docs/b2b/guides/rbac/stytch-default) for a more detailed explanation.\n\n "
},
"actions": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of permitted actions the Scope is required to take with the provided Resource. You can use `*` as a wildcard to require a Scope permission to use all possible actions related to the Resource. "
}
},
"required": [
"resource_id",
"actions"
]
}