User attributes

Set switchable values for a user or group

Changed on
<Note> **Organization Admin** permissions are required to use this endpoint. </Note>

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.

<Warning> Provisioning a value grants data access. Shared extensions and access filters often route on the same attribute, so a switchable value typically lets the user read another tenant's rows. Provision only the values a user or group should see. </Warning>
put/v1/user-attributes/{userAttributeId}/selectable-values

Request

  • Base URL
    https://blobsrus.omniapp.co/api
  • URL
    https://blobsrus.omniapp.co/api/v1/user-attributes/{userAttributeId}/selectable-values
  • Auth
    HTTP bearer

Path parameters

userAttributeIdstring uuid required
Example:a1b2c3d4-e5f6-7890-abcd-ef1234567890

User attribute ID

Request body

OR

Example request

{
  "user_id": "8f14e45f-ceea-467a-9c2b-8f1d2a3b4c5d",
  "values": [
    "acme",
    "globex"
  ]
}

Response

The provisioning as stored

user_attribute_idstring required

Unique identifier for custom attributes. Empty string for system-defined attributes.

valuesstring[] required

Values this user or group can switch the attribute to. Numbers are returned as strings to preserve precision beyond 2^53.

allow_any_valueboolean required

Whether the user or group can switch to a value that is not listed. When true, selectable_values are suggestions.

Example response

{
  "user_attribute_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "values": [
    "acme",
    "globex"
  ]
}

Changes