Access
Preview

Whether each of these people can be given a role on a place

Changes nothing. For each person, says whether they can be given the role on that place

POST
/role-bindings/check
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

application/json
  1. body
roleId*string
Formatuuid
scope*
userIds*array<string>

The people to give the role to. A repeated id counts once.

Items1 <= items <= 200
expiresAt?|

When the grants end. Ignored by the check.

Formatdate-time

Response Body

One verdict per person, in the order asked.

application/json
  1. response
items*array<>
Example Request
curl -X POST 'https://wardn.example.com/api/v1/role-bindings/check' \  -H 'Content-Type: application/json' \  -d '{  "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391",  "scope": {    "kind": "org",    "label": "string"  },  "userIds": [    "string"  ]}'
Example Response
{  "items": [    {      "userId": "string",      "verdict": "ok",      "message": "string",      "orgRole": "owner",      "requiredOrgRole": "owner",      "holdsUntil": "2019-08-24T14:15:22Z"    }  ]}