org

Add organization IAM roles

Grants additional roles to principals on this organization. Existing roles are preserved.

post/api/v2/org/{id}/iam

Request

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

Path parameters

idstring required

The organization ID

Request body

principalstring email required

Email address of the user or service account to assign roles to

rolesIamRole[] required

One or more roles to assign to the principal

Example request

[
  {
    "principal": "alice@example.com",
    "roles": [
      "Admin"
    ]
  },
  {
    "principal": "bob@example.com",
    "roles": [
      "Viewer"
    ]
  }
]

Response

IAM roles added

messagestring required

Human-readable confirmation message

Example response

{
  "message": "success"
}

Changes

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