user

Check permissions

Batch-checks whether the authenticated user has specific permissions on one or more resources.

post/api/v2/user/check-permissions

Request

  • Base URL
    https://central.zerotier.com
  • Auth
    HTTP bearer

Request body

resourceIdstring required

The ID of the resource to check permissions for

resourceType'org' | 'network_group' | 'network' required

The type of resource to check permissions for

permissionstring required

The permission to check

Example request

[
  {
    "resourceId": "a1b2c3d4e5",
    "resourceType": "network",
    "permission": "updateNetwork"
  }
]

Response

Permission check results, one entry per request item

resourceIdstring required

The ID of the resource that was checked

resourceType'org' | 'network_group' | 'network' required

The type of resource that was checked

permissionstring required

The permission that was checked

allowedboolean required

Whether the permission is allowed

Changes

No recorded changes to this operation across all 1 revision of this API.