Skip to main content

Rbac Role Picker

Overview

A roles picker that allows you to select an RBAC role to be assigned to a subject, when creating permissions.

RbacRolePicker preview

Configuration

Options are fetched from the roles table in the rbac schema. Only roles having the visibility set to user will be visible and selectable in this list.

roleId:
type: string
title: Role
ui:field: RbacRolePicker
default: <optional default role ID>
ui:options:
allowArbitraryValues: false

When using RbacRolePicker, it is possible to define under ui:options parameter an attribute called allowArbitraryValues that if it is set to false, it prevents the users to type arbitrary values outside the list of roles.