Skip to main content
PATCH
Change a member
Takes a managing key (oc_key_...) or a signed-in session. See Editions for what OneCLI Cloud adds. Changes a member’s role, or suspends or reinstates them. One change per call. Only an owner, signed in and not using a key, makes someone an owner or changes an owner’s role, and only an active admin can become an owner. Nobody changes their own role. An owner cannot be suspended. signInExempt lets a member sign in without required single sign-on: it takes a signed-in session, never a key, and an admin cannot change their own, an owner can.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Path Parameters

id
string
required

The member's user id.

Required string length: 1 - 64

Body

application/json
role
enum<string>
required
Available options:
owner,
admin,
member

Response

The member after the change.

createdAt
string
required

Joined at, ISO 8601.

email
string
required
id
string
required

The person's user id.

name
string | null
required
role
enum<string>
required
Available options:
owner,
admin,
member
roleManaged
boolean
required

A directory group sets this role, so it cannot be changed here.

signInExempt
boolean
required

Break-glass: may sign in without the organization's single sign-on when it is required.

status
enum<string>
required
Available options:
active,
suspended