Skip to main content
Version: 57.2.0

PRIVILEGED_USER_FIELDS

const PRIVILEGED_USER_FIELDS: readonly ["admin", "roles", "organizationIds"]

User fields that confer authority. Self-service requests (anonymous signup, PATCH /me) must never set them, or any caller could grant themselves admin or an RBAC role. Elevate users through the admin API or access.roles.assign instead.