Set switchable values for a user or group
Organization Admin permissions are required to use this endpoint.
Replaces the values a user or group may switch this attribute to. Values are validated against the attribute type, such as String.
Provide one of user_id or group_id; providing both will result in an error.
Value requirements
- Values must be valid for the attribute’s type; for example, a
Numberattribute rejectsacme - Requests can contain up to 300 values of up to 512 characters each. For a larger set, use
allow_any_valueinstead.
Removing provisioning
Sendingvalues: [] with allow_any_value: false removes the provisioning entirely. Any switch the user already made no longer applies and they fall back to their assigned value.Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
User attribute ID
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Body
- For a user
- For a group
The user's membership ID, not their user ID. Mutually exclusive with group_id.
"8f14e45f-ceea-467a-9c2b-8f1d2a3b4c5d"
Values this user or group can switch the attribute to, validated against the attribute type.
Numbers are sent as strings to preserve precision beyond 2^53. At most 300 values of up to 512 characters each.
3001 - 512Whether the user can switch to a value that isn't listed.
false
Response
The provisioning as stored
The user attribute definition this provisioning applies to.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Values this user or group can switch the attribute to. Numbers are returned as strings to preserve precision beyond 2^53.
3001 - 512Whether the user or group can switch to a value that is not listed. When true, selectable_values are suggestions.
false

