Skip to main content

Custom Roles and Groups

Define the workspace's own roles from a base role and a permission set, assign them to members, and organize members into groups.

Custom roles start from a base role and name their permission set; a change reaches every member who holds the role at once. Groups collect members for access rules and reviews.

GET/v1/team/roles

cURL

curl -X GET https://api.talonic.com/v1/team/roles \
  -H "Authorization: Bearer $TALONIC_API_KEY"
POST/v1/team/roles

cURL

curl -X POST https://api.talonic.com/v1/team/roles \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "\u2026", "base_role": "viewer", "permissions": []}'
PATCH/v1/team/roles/{id}

cURL

curl -X PATCH https://api.talonic.com/v1/team/roles/$ID \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/v1/team/roles/{id}

cURL

curl -X DELETE https://api.talonic.com/v1/team/roles/$ID \
  -H "Authorization: Bearer $TALONIC_API_KEY"
PUT/v1/team/members/{userId}/workspace-role

cURL

curl -X PUT https://api.talonic.com/v1/team/members/$USERID/workspace-role \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"role_id": null}'
GET/v1/team/groups

cURL

curl -X GET https://api.talonic.com/v1/team/groups \
  -H "Authorization: Bearer $TALONIC_API_KEY"
POST/v1/team/groups

cURL

curl -X POST https://api.talonic.com/v1/team/groups \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "\u2026"}'
PATCH/v1/team/groups/{id}

cURL

curl -X PATCH https://api.talonic.com/v1/team/groups/$ID \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/v1/team/groups/{id}

cURL

curl -X DELETE https://api.talonic.com/v1/team/groups/$ID \
  -H "Authorization: Bearer $TALONIC_API_KEY"
PUT/v1/team/groups/{id}/members

cURL

curl -X PUT https://api.talonic.com/v1/team/groups/$ID/members \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"member_ids": []}'
Errors: 401 missing or invalid credential; 403 with a reason (insufficient_scope, insufficient_role, person_inactive, not_member, no_person, workspace_read_only, or STEP_UP_REQUIRED); 404 unknown id in this workspace; 429 rate limited (see Retry-After).