Everyone in a workspace with their roles: a workspace role and one per project, each a Role Picker, and remove. The last owner's row is locked with the reason.
On this page
- Members settings
- Project access
- Team admin
- Access reviews
- Onboarding a team
Examples
On a phone
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- membersrequired
MemberRow[]- { id, name, email?, avatarUrl?, workspaceRole, projectRoles?, lockedReason? }. projectRoles are { projectId, projectName, roleId }.
- rolesrequired
Role[]- The roles every picker offers.
- catalog
PermissionGroup[]- For each role's line in the pickers.
- onWorkspaceRoleChange
(memberId, roleId) => void- Without it the workspace pickers are off.
- onProjectRoleChange
(memberId, projectId, roleId) => void- roleId is null for No project role. Without it the project pickers are off.
- onRemove
(memberId) => void- Shows remove at the end of each row that is not locked.
- className
string- On the outer element; the layout stacks below 640px of its width.
| Prop | Type | Default | Description |
|---|---|---|---|
| membersrequired | MemberRow[] | required | { id, name, email?, avatarUrl?, workspaceRole, projectRoles?, lockedReason? }. projectRoles are { projectId, projectName, roleId }. |
| rolesrequired | Role[] | required | The roles every picker offers. |
| catalog | PermissionGroup[] | - | For each role's line in the pickers. |
| onWorkspaceRoleChange | (memberId, roleId) => void | - | Without it the workspace pickers are off. |
| onProjectRoleChange | (memberId, projectId, roleId) => void | - | roleId is null for No project role. Without it the project pickers are off. |
| onRemove | (memberId) => void | - | Shows remove at the end of each row that is not locked. |
| className | string | - | On the outer element; the layout stacks below 640px of its width. |
Accessibility
- A table with rows and cells that stay rows and cells when the layout stacks.
- Each picker and button is named after the member: "Atlas role for Tomas Lindqvist", "Remove Ravi Menon".
- A locked row has a focusable lock that reads its reason, and its pickers are disabled.
What it handles
- 01Shows each member with their avatar, name and email, a workspace role and a role per project, every one a Role Picker.
- 02Gives project roles a No project role entry, so a member can fall back to their workspace role.
- 03Locks a row that must not change, such as the last owner: the pickers turn off and remove becomes a lock with the reason.
- 04Stacks each row into a card below 640px of its own width, with the same table semantics.
States
- Change a role
- The picker shows the new role; your handler saves it
- none
- Remove
- Your handler drops the row
- none
- No members
- One row says nobody is here yet
- none
| State | What moves | Timing |
|---|---|---|
| Change a role | The picker shows the new role; your handler saves it | none |
| Remove | Your handler drops the row | none |
| No members | One row says nobody is here yet | none |
Works with
When to use
When to use
- The members page of a workspace: who is in it, their workspace role and a role per project.
- An access review where a lead changes roles row by row and removes people who left.
When not to use
- Members with invites, seats and pending states: use Settings.
- Editing what a role allows: use Permission Matrix.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Member Roles Table to my app and wire it to my own data.
- I need the members page of a workspace: who is in it, their workspace role and a role per project. Set that up with the Knowns UI Member Roles Table.
- Which Member Roles Table props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "member-roles-table" }) and search_docs({ query: "member roles table" }). Pro props, full examples and source come back once your license key is in the MCP config.