Administrator guide to permissions and access
The permissions manual for tenant administrators: onboard a tenant in four steps, then run daily access by assigning positions — no plumbing needed.
You are the system administrator of an ObjectStack tenant. You opened Setup for the first time and found dozens of positions and permission sets you never created. This page is the "I'm the admin — what do I actually do?" manual: one real task — onboarding your organization — walked start to finish, with the platform concepts introduced only where you need them.
The one thing to internalize before anything else:
90% of daily administration is assigning people to positions. The positions, the permission sets behind them, and the security baseline all ship with the platform and the apps you install. You almost never build capability from scratch — and you shouldn't.
Four concepts — only one is a daily tool
| Concept | What it is | Who authors it | You touch it |
|---|---|---|---|
| Permission set | The only capability container — object CRUD, field security, access depth, system capabilities | Platform & app developers; ships with apps | Rarely — Step 5 |
| Position (岗位) | A flat, named job function that binds permission sets; users hold positions | Ships with apps; you assign it | Daily |
| Business unit | The one hierarchy — org tree that decides visibility depth and delegation boundaries | You, at onboarding and reorgs | Occasionally |
| User | The person signing in | You | Daily |
A user's effective access is the union of every permission set reached
through their positions, plus direct grants, plus the built-in additive
baseline (member_default) every authenticated user gets. Restriction is done
by not granting — there are no subtraction rules to maintain. Details:
Permission Sets ·
Positions.
The whole flow at a glance
Onboarding a tenant is four ordered steps — each depends on the previous one:
- Build the organization — create the business-unit tree.
- Add people — invite, create, or import users; place them in units.
- Assign positions — give each person their job function (the daily 90%).
- Verify — impersonate a user and ask the explain engine why access resolves the way it does.
A fifth step exists only for the minority case where a shipped position doesn't fit.
Step 1 — Build the organization (Business Units)
Setup → People & Organization → Business Units (/apps/setup).
The default Org Chart tab renders the tree as an indented
expand-and-collapse tree grid. Create the root first (kind company), then
add children with New, picking the Parent Business Unit in the form —
division / department / office / cost_center are display hints; the
tree works the same regardless. Reorganizing works the same way: Edit a
unit and change its parent. (Rough edge today: the tree view is a read-only
presentation — re-parenting happens through the record form, not drag-and-drop.)
Three similarly-named things, three different jobs — don't mix them up:
| Object | Job |
|---|---|
Business unit (sys_business_unit) | The hierarchy. Drives visibility depth (unit, unit_and_below; enforced by the enterprise edition, owner-only on the open edition) and delegated-admin boundaries |
Team (sys_team) | Flat collaboration group. Teams receive sharing; they never carry capability |
Organization (sys_organization) | The tenant itself — your company's account, not a node inside it |
Keep the tree shallow and honest to your real structure; you'll revisit it only on reorgs. Why the tree matters: access depth.
Step 2 — Add people (Users)
Setup → People & Organization → Users. Three ways in, all first-class:
| Path | When to use | What happens |
|---|---|---|
| Invite User (toolbar) | The person has a reachable email | Sends a better-auth invitation; they set their own password on accept |
| Create User (toolbar) | No email flow wanted — or phone-only staff | Creates a sign-in-ready account (email and/or phone); a generated temporary password is shown once, with password-change forced on first login |
| Import (toolbar) | Bulk onboarding from CSV/Excel | Wizard with column mapping and dry-run preview; up to 500 rows per batch. Pick the sign-in policy: no password (first sign-in via OTP/magic/reset link), send invitations, or one-time temporary passwords |
Day-to-day lifecycle actions live on each user's row menu and record header: Ban / Unban (blocks sign-in, ends the user's sessions, and refuses their API keys and OAuth access tokens while the ban holds, with no new OAuth token issued to them), Unlock Account (clears a brute-force lockout early, at both the password and two-factor stages), Set Password (also mints one-time temporary passwords), and Impersonate User (see Step 4). (Rough edge today: users' own self-service password recovery depends on a configured email or SMS delivery service — wiring tracked in cloud#580. Until then, admin Set Password is the reliable fallback.)
Placing a person in the org tree is a separate record: a Business Unit
Member row (sys_business_unit_member — user + business unit, one marked
primary). Depth-based visibility and unit_and_subordinates sharing resolve
through this membership, so don't skip it.
Endpoint-level detail (payloads, password policies, phone-only accounts): Authentication → Admin User Management.
Handing over a banned user's work
A ban does not move the records the person owns or is assigned. Two calls do, both run as you, so they count and change only what you could read and edit by hand:
GET /api/v1/security/users/USER_ID/assigned-workanswers, per object and user field (the owner field and every app user field such as an assignee), how many records hold the user. Objects you cannot read are listed inunreadable.POST /api/v1/security/users/USER_ID/assigned-work/transferwith{ "toUserId": "...", "objects": ["..."] }(objectsoptional) moves up to 500 records per call to an active user, each as an ordinary edit, so sharing, validation rules and hooks apply. It answers what moved, what failed and how many remain; call it again untilremainingis 0.
Some holdings are counted but not moved, and the count says why on each row
(transferable: false with a reason):
multi_valued: a user field that lists several people. Replacing one person in a list is a different edit from reassigning a record.transfer_off: the owner field of an object whose Change Owner switch,userActions.transfer, is off. The hand-over follows the same switch as the Change Owner action, so an object that turns it off keeps its records' owners where they are. The switch defaults to off on a detail object (sharingModel: 'controlled_by_parent'): there the owner usually records who did the work (the person on a timesheet, the spender on an expense line), and a detail row that names its master is reached through that master, so hand over the master record instead. A detail whose owner really holds the record (a contact under an account) setsuserActions.transfer: true, and the hand-over then moves its owner like any other. The rule is per object: on a switched-off detail whose master is optional (declaredrequired: false), a row with an empty master reference keeps its owner too, and after the ban only holders of View All / Modify All on the detail reach it; a holder of Modify All moves it by filtering the detail by owner and editing the owner by hand.
The switch governs only the platform owner field: an object's other user fields, such as an approver, are counted and moved as usual.
The hand-over is optional and never delays the ban. Once a user is banned, a
new record or edit that sets a user field to them is refused with the field
code reference_user_banned; a record that already holds them stays editable.
Step 3 — Assign positions
This is the daily 90%. An assignment is one row: User Position
(sys_user_position) = user + position + optionally the business unit
they hold it in. The anchor decides where the position's depth grants apply
— "sales manager of East" sees East's records, not the whole company's.
From Setup → People & Organization → Position Holders, pick a position and add its holders. Holders added there carry no business-unit anchor; to anchor an assignment to a unit, open the user's record page, go to its Positions tab and choose New: the assignment form there takes the position and the business unit. These writes are governed: tenant-level admins pass; a delegated admin can only assign allowlisted sets inside their own subtree — self-escalation is structurally refused.
Two adjacent surfaces complete the picture:
- Direct grants — Setup → People & Organization → Permission Set Assignment: pick a permission set, and its Assigned Users panel adds per-user grants without a position. Rows held via a position are shown but removed on the position (Position Holders), not here.
- Business-unit membership — from Step 2; independent of the assignment anchor.
(Rough edge today: position assignments, BU membership, and direct grants are three separate entry points — they aren't consolidated into a single panel on the user page yet.)
Step 4 — Verify
Never announce "you're all set" untested. Two built-in verification tools:
- Impersonate. Users list → row menu → Impersonate User. You get that user's session — open the apps they'd open, confirm they see what they should (and don't see what they shouldn't). Impersonation is for legitimate support and verification; sessions are logged.
- Explain. Studio's Access pillar → Explain access: pick the user,
an object, and an operation, and the engine returns the verdict plus every
evaluation layer — which permission set granted, held via which position,
which sharing rule widened, which policy narrowed. The same report is
available over REST at
/api/v1/security/explain. See Explain Engine.
When something resolves wrong, explain-first beats guess-and-toggle: the report names the exact permission set and layer to fix.
Step 5 — Configure permissions (only when the shipped positions don't fit)
One rule of thumb: capability ships with the apps you install — you rarely author a permission set by hand. If you are in this section, you've confirmed no shipped position covers the need.
The permission-set matrix editor (Setup → Access Control → Positions and Permissions → Permission Set, then open the set in Studio's editor) is a structured spreadsheet — you never hand-write JSON:
- Object grid — per object: Create / Read / Update / Delete, lifecycle bits (Transfer / Restore / Purge), and View All / Modify All, with per-row bulk buttons (Read / CRUD / All / None) and the object's sharing baseline (OWD) shown alongside.
- Field-level security — expand an object for per-field Read / Edit, and a When (edit) condition that locks a field for this set's holders once a record reaches a stage — see the recipe Lock fields for a position once a record reaches a stage.
- Capabilities — named grants like
manage_usersorstudio.access.
Prefer the smallest change that works, in this order: bind an existing set
to a position → clone and adjust → author a new set. A set shipped
in code — by an app you installed, or as a platform default such as
member_default — can't be edited in the environment (a save answers
403 NOT_OVERRIDABLE): clone it and adjust the clone, which is your own set
while upgrades keep reaching the original. Sets created here, clones, and sets
saved into a writable runtime package are edited in place. The API name is
immutable after creation. And keep the additive model in mind: author
coherent capability bundles, never "subtraction sets".
Full model: Permission Sets.
Send a message to your organization
To tell people something in the app (a maintenance window, a policy change), open Setup → Diagnostics → Notification Events and choose Send In-App Message. The message lands in each recipient's notifications, the bell, like any other notification.
- Who can send: whoever holds the
setup.writecapability in their current organization. Organization administrators and platform administrators hold it by default; a plain member is not offered the action, and the server refuses the request. A permission set you author that grantssetup.writelets its holders send too. - Who receives: either Everyone in this organization (every member of the organization you are working in, whatever their membership level, and nobody outside it), or the people you pick under Recipients. Pick members of your current organization only: a person who is not one is refused by name, and nothing is sent.
- The message: a title (up to 255 characters), the message itself
(Markdown, up to 10,000 characters), a severity (info, warning or critical)
and an optional link, either a page in the app (
/apps/…) or anhttp(s)address.
When it is sent, the confirmation says how many people it went to. Each
message is a notification event with the topic org.announcement, listed on
the same page. A member whose notification preferences turn that topic off
is not sent it, and is not counted. The count is of the people a delivery
was accepted for. A send that reached nobody is refused instead of
confirmed: 409 when every person you picked has turned the topic off, and
503 when delivery could not be made, or, for Everyone, when the member
list could not be read or every member has turned the topic off.
Programs and agents send the same message through
POST /api/v1/messaging/in-app-messages, with the body
{ everyone | recipients, title, body, severity?, link? }, under the same
rules. A flow that should message the whole organization uses the notify
step's org:members recipient instead
(Flows).
Deliver notifications by Slack direct message
On a deployment that composes the Slack connector (ConnectorSlackPlugin),
notifications can also reach people as Slack direct messages, from your
organization's own Slack app. Without the connector none of this appears:
the notification settings page lists no Slack channel.
- Install Slack (an administrator). Open Setup's Slack page,
/apps/setup/component/messaging/slack; it needssetup.writein your current organization, as the server does. Paste your Slack app's bot token (it starts withxoxb-) and choose Install. Slack checks the token before anything is saved; it is stored encrypted and never shown again, so the field is always empty. Save token sets it again, for instance after Slack refused it (the page then says Token refused). - Connect (each person). On Notification Settings, the Slack section's Connect Slack asks for a proposal: a Slack user of your workspace with the person's verified email, not linked to anyone else. The proposal names no one until the person chooses Confirm; Cancel drops it. Nothing reaches them on Slack before they confirm. Disconnect removes the link.
- Manage links (an administrator). The same Slack page lists every link (the person, the Slack user once confirmed, and when) and removes one; the person is told by in-app message and email and can connect again. Remove Slack removes the install and every link, and tells each linked person the same way.
Quick paths
| I need to… | Do this |
|---|---|
| Onboard a new employee | Invite/Create the user → Business Unit Member row → assign their position (2→3) |
| Offboard someone | Ban User (blocks sign-in, the user's API keys and their OAuth access tokens and token refreshes immediately) — then hand over their records (below) and remove assignments at leisure |
| "I can't sign in" | User record → is it banned? locked? Unlock Account or Set Password (temporary, must-change) |
| "Why can't I see X?" | Studio → Access → Explain access for that user + object |
| Someone changed departments | Update their Business Unit Member row; re-anchor their User Position rows |
| Let a subsidiary manage its own staff | Grant a set carrying a delegated admin scope |
| Give one user one extra capability | Permission set record → Assigned Users → add (direct grant) |
| Tell everyone in the organization something | Setup → Diagnostics → Notification Events → Send In-App Message (above) |
FAQ
Do I need Studio? Rarely. Setup is the administrator's home — the permission-set matrix editor (Step 5) lives there too. You enter Studio mainly for the Explain panel.
A new user sees almost nothing — broken? No: that's the baseline working. Access arrives when you assign a position (Step 3).
Department vs. team? Department = business unit (hierarchy, visibility). Team = flat sharing group. If it should affect what records people see by org structure, it's a business unit.
Can I delete the built-in permission sets? No — sets like
member_default and organization_admin are the platform baseline. Shipped
sets can't be edited in place either, but they can be cloned and adjusted
(Step 5) or simply left unassigned.
Where is everything
| Thing | Location |
|---|---|
| Users, invitations | Setup → People & Organization → Users / Invitations |
| Business-unit tree | Setup → People & Organization → Business Units |
| Teams | Setup → People & Organization → Teams |
| Positions, permission sets, capabilities: what they grant, and a position's or set's on/off switch | Setup → Access Control → Positions and Permissions |
| Who holds a position, who holds a permission set | Setup → People & Organization → Position Holders / Permission Set Assignment |
| Sharing rules, record shares | Setup → Access Control |
| Password policy, MFA, lockout, SSO | Setup → Configuration → Authentication |
| Company info, localization, branding | Setup → Configuration |
| Sessions, notification events, audit logs | Setup → Diagnostics |
| Send an in-app message to the organization | Setup → Diagnostics → Notification Events |
| Explain access | Studio → Access |
See also
- Permissions & Identity overview — the full model
- Positions · Permission Sets
- Delegated Administration — scale yourself out
- Authentication — hardening and sign-in flows
Permissions & Identity
Authentication, authorization, and record- and field-level access control in ObjectStack — declared as security metadata and enforced by the runtime.
Locked Items
What a locked item is, why its package locked it, and what an administrator can do instead of editing or deleting it.