Skip to content

UserManagementConfig

UserManagementConfig = object

Defined in: packages/admin/src/types.ts:214

Configuration for the built-in user management views.

Controls which roles can be assigned through the admin UI. Role assignment respects your auth adapter’s setRole and removeRole callbacks.

const users: UserManagementConfig = {
assignableRoles: ["user", "editor", "moderator", "admin"],
};

optional assignableRoles: string[]

Defined in: packages/admin/src/types.ts:216

The list of role names that can be assigned/removed via the admin user management UI. Defaults to an empty array (no role management).