Access
Preview

Everything a person can do, and why

One person's access in one place: their organization role, their role in each team and every

GET
/members/{userId}/access
cookiebetter-auth.session_token<token>

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

userId*string

Response Body

The person's access.

application/json
  1. response
userId*string
name*string
orgRole*OrgRole
Value in"owner""admin""contributor""viewer"
chips*array<>

The summary under the person's name, grouped by role.

teams*array<>
entries*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/members/string/access'
Example Response
{  "userId": "string",  "name": "string",  "orgRole": "owner",  "chips": [    {      "roleName": "string",      "places": [        {          "kind": "org",          "id": "string",          "label": "string"        }      ]    }  ],  "teams": [    {      "teamId": "string",      "teamName": "string",      "role": "owner",      "paused": true    }  ],  "entries": [    {      "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391",      "roleName": "string",      "place": {        "kind": "org",        "id": "string",        "label": "string"      },      "source": {        "kind": "membership",        "id": "string",        "label": "string"      },      "designatedBy": "string",      "expiresAt": "2019-08-24T14:15:22Z",      "paused": true,      "duty": true    }  ]}