Skip to Content
Polyant is open source under AGPL-3.0 — star us on GitHub.

Members and roles

On this page

With managed services, Members & roles (/organizations/{org}/settings/organization/people), under Overview in the organization’s sidebar, is the one place the organization’s people are administered. The old /organizations/{org}/members and …/settings/organization/members addresses forward here. It folds together three screens that used to be separate - the member list, invitations, and workspace role bindings - because they are one job: getting the right people into the organization with the right standing.

It has two tabs, and they are gated separately:

TabNeedsManaged services
Membersorg.member:manage-
Rolesorg:writecustom roles

The section itself carries the weaker of the two. See Roles for the second tab.

On the open-source build the page is Members (/organizations/{org}/members), under Management in the sidebar, with org.member:manage: a searchable member list; clicking a member opens a drawer with their organization role and removal. It has no invitations, workspace roles or custom roles.

Membership mutations are privileged and infrequent, so the endpoints carry a tighter rate limit (30 requests/minute) than the API default.

What this page is not

It administers memberships and bindings, not accounts. The sign-in account itself - and the installation-wide platform-admin flag - belongs to the Admin Console, under Platform members. Three tiers, three objects:

ObjectWhere
the sign-in accountAdmin Console → Platform members
the membership and its role bindingshere
the role definitionhere, second tab

Those tiers were briefly folded together, and it went badly enough to be worth stating: an installation-wide account list shown on an organization page listed people who belonged to a different tenant, and creating an account from an organization page produced someone who was a member of no organization at all.

Assigning an organization role

Each member holds exactly one organization-scope role: Owner, Admin, Member, Viewer, or a custom role. Assigning is idempotent - it replaces any existing binding rather than stacking.

For what each role grants, see Roles and permissions.

The assignment goes through two guards, and both return an error rather than doing something surprising:

  • Owner-last. The organization must never be left without an Owner. Demoting or removing its only Owner is refused, which is what stops an accidental lock-out.
  • No self-escalation. You cannot grant a role above your own level, and you cannot touch a member who already outranks you. An Admin can manage Members and Viewers; only an Owner can create another Owner.

A role change flushes that user’s cached permissions immediately, so it takes effect on their very next request rather than after a cache window.

Removing a member

Removing a member drops their organization binding and their membership. It does not delete their sign-in account - that is an installation-level operation under Platform members. The owner-last and outranking guards apply here too.

You cannot remove yourself. Your own drawer says so instead of offering the button, and the engine refuses the request. Removing yourself is leaving the organization rather than managing a member: your session would outlive the membership, and the organization would disappear at the next reload with nothing said. Another Owner or Admin removes you.

The person’s drawer

Clicking a person opens their drawer: their organization role and, with workspace roles, their role in each workspace of the organization, under one Save, and at the bottom removing the membership or revoking the invitation, each behind a confirmation. The Workspace roles column of the list counts the workspaces a person holds a role in (No workspace, 1 workspace, N workspaces). A member with no organization role reads No role.

A custom role is shown in the drawer but not edited there: the select offers the four system roles, and picking one would replace the custom role. The panel’s selects and the invite form offer system roles only; a custom role is bound through the API, by passing its key to PUT /api/organizations/{org}/members/{userId} or to an invitation.

A pending invitation opens the same drawer with its workspace, role, inviter and expiry, and a Send again button; see Invitations.

Workspace roles

Managed services. Requires the workspace-scoped-RBAC feature, and workspace.member:manage.

In the drawer, each workspace of the organization has its own role select, where No workspace role removes the binding. You change a person’s placement across the organization from their drawer, without switching workspace. Without workspace.member:manage the workspace roles are read-only. That permission is separate from org.member:manage, which opens the tab, so a custom role can read the list without being able to place people in workspaces.

A workspace binding decides what the person may do in that workspace, granting and revoking, and the panel shows it as their role there. The exception is an organization role at Admin rank or above (Owner, Admin, or a custom role ranked at that level): it keeps its rights in every workspace, a binding only adds to it, and the panel shows the higher of the two. So an Admin given Viewer on one workspace keeps the Admin’s rights there, while a Member given Viewer can only read there. See Workspaces.

Without the workspace-scoped-RBAC feature every member reaches every workspace, and the drawer and the invite form show no workspace fields.

Adding people

Managed services. Invitations are available with Polyant managed services.

With invitations, an invitation is the way into the organization: Add opens the invite form, which sends a token link, and the holder joins with the role you chose when they accept. If the installation has a mailer configured the link is emailed; otherwise it is shown for you to deliver. See Invitations. An address that already belongs to the organization is not invited: the form points you to that member’s drawer instead.

The API follows the same rule. PUT /api/organizations/{org}/members/{userId} changes the role of an existing member only, and answers 400 for anyone else, naming the invitation as the way in. Without the invitations feature it still adds the person, since it is then the only way in, but the panel has no Add button.

Creating the sign-in account itself, without a membership, is done from Platform members.

Audit

Organization and workspace role assignments and removals are recorded in the authorization audit with the acting operator, the target user, and - for a workspace binding - the workspace.

See also

Last updated on