Herald
OpenapiExt

Check a user's capabilities in an organization

Boolean judgment for the per-request pattern: every rule must hit for `allowed = true`. Non-members get an explicit `member = false`; a disabled member keeps `member = true` with `allowed = false`. Rejections are structured 200 results, matching the ext permission-check contract.

POST
/api/ext/realms/{realmId}/orgs/{orgId}/permission-check

Boolean judgment for the per-request pattern: every rule must hit for allowed = true. Non-members get an explicit member = false; a disabled member keeps member = true with allowed = false. Rejections are structured 200 results, matching the ext permission-check contract.

Authorization

api_key
headerX-API-Key<token>

Client-app API key (third-party external API).

Path Parameters

realmId*string

Realm ID

orgId*string

Organization ID

Request Body

application/json
  1. body
rules?array<>|

All rules must hit for allowed = true. Deserialized as Option so a missing or empty array yields a structured 400 rules_required instead of a vacuous allowed=true.

userId*string

Response Body

Check result (denials are structured 200 bodies)

application/json
  1. response
allowed*boolean
member*boolean

false = the user is not a member (a distinct result from a denied member: member = true, allowed = false).

role?null|
Example Request
curl -X POST 'https://example.com/api/ext/realms/string/orgs/string/permission-check' \
  -H 'Content-Type: application/json' \
  -d '{
  "userId": "string"
}'
Example Response
{
  "allowed": true,
  "member": true,
  "role": null
}