Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .changeset/37565-access-directory-in-setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
'@objectstack/platform-objects': patch
'@object-ui/app-shell': patch
'@object-ui/i18n': patch
'@object-ui/console': patch
---

feat(setup): the environment directory (positions, capabilities, permission sets, sharing rules) moves from Studio's menu to Setup → Access control

Clause-②: no
Metadata-protocol: none

Studio develops one package, and Setup holds what is global (ADR-0084, amended 2026-11-26). The cross-package directory of the environment's access metadata (positions, capabilities, permission sets and sharing rules) is now a Setup page: **Setup → Access control → Positions and Permissions** (`/apps/setup/component/security/access-directory`).

- The page shows the same directory and the same per-type lists as before, with the activation switches, Clone and New. Opening an item, creating one, or opening its history still happens in Studio, on the same editor as before.
- Studio's left menu no longer has the "Positions and permissions" entry under Access. On the organization-flows scope (`~org`), the menu's access rows open their lists on the Setup page.
- Old links keep working and land in one hop: `/studio/~all/metadata`, a directory type's list (`/studio/~all/metadata/permission?scope=environment`), a bare `/studio/~all/…` address, and the old Setup metadata URLs that led there. Item links under `/studio/~all/metadata/TYPE/NAME` are unchanged.
- Visibility does not widen. The Setup entry and the page both require `studio.access`, the capability that admitted a user to the directory in Studio, in addition to Setup's own `setup.access`.
- A user who can enter Studio but cannot open Setup → Packages, and has no recent package, now lands on Studio's organization-flows scope (`/studio/~org`) instead of the old directory. This is temporary: the scope retires when the door that moves loose items into a package ships, and the landing is decided again then.
- One new Setup menu label, "Positions and Permissions", in every Setup locale, and one new message for a user without `studio.access`.
7 changes: 4 additions & 3 deletions content/docs/permissions/administrator-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@ 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** (Studio → **All metadata** → Permission
Set, then open the set) is a structured spreadsheet — you never hand-write JSON:
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
Expand Down Expand Up @@ -322,7 +323,7 @@ sets can't be edited in place either, but they can be cloned and adjusted
| 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 | Studio → All metadata |
| 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 |
Expand Down
10 changes: 5 additions & 5 deletions content/docs/permissions/authorization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ only what it owns:
**live** (config); the sets a position distributes are its definition's
`permissionSets`. It owns environment-authored sets and assignments — not
package sets. The set **definition** has one authoritative store, the
metadata layer (ADR-0094 D1, ADR-0131 D3): Studio's **All metadata** area
lists the catalog (`/studio/~all/metadata/permission?scope=environment`;
Setup carries no metadata catalog, and its old
`/apps/setup/metadata/permission` address redirects there), and a create or
edit there is a metadata save (`PUT /api/v1/meta/permission/:name`) into the
metadata layer (ADR-0094 D1, ADR-0131 D3): Setup → Access control →
**Positions and Permissions** lists the catalog
(`/apps/setup/component/security/access-directory/permission?scope=environment`;
the old Studio and Setup catalog addresses redirect there), a set opens in
Studio's editor, and a create or edit there is a metadata save (`PUT /api/v1/meta/permission/:name`) into the
environment's definition ledger (`sys_metadata`), served from the registry
beside the packages' sets. No row mirrors it: the `sys_permission_set`
object is no longer registered, so no data route serves one. The save
Expand Down
8 changes: 5 additions & 3 deletions content/docs/permissions/permission-sets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,11 @@ layer — a package's declaration, or a definition authored in this system
and saved in `sys_metadata` — served by name from the security catalog.
Nothing mirrors it into a row: the `sys_permission_set` record ADR-0094 kept
as a projection is retired, its object is no longer registered, and no data
route serves it (ADR-0131 D3). Studio's All metadata area lists the catalog
(`/studio/~all/metadata/permission?scope=environment`; Setup's old
`/apps/setup/metadata/permission` address redirects there), a grant
route serves it (ADR-0131 D3). Setup → Access control → Positions and
Permissions lists the catalog
(`/apps/setup/component/security/access-directory/permission?scope=environment`;
the old Studio and Setup catalog addresses redirect there, and a set opens in
Studio's editor), a grant
names its set by its package and name (`sys_user_permission_set.permission_set_package`
and `permission_set`), and a write
goes through the metadata door (`PUT` or `DELETE /api/v1/meta/permission/:name`),
Expand Down
17 changes: 17 additions & 0 deletions packages/platform-objects/src/apps/setup-nav.contributions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,23 @@ export const SETUP_NAV_CONTRIBUTIONS: NavigationContribution[] = [
{ id: 'nav_invitations', type: 'object', label: 'Invitations', objectName: 'sys_invitation', icon: 'mail' },
],
},
{
app: 'setup',
group: 'group_access_control',
// [ADR-0084, amended 2026-11-26, question 5] The environment directory —
// positions, capabilities, permission sets and sharing rules across every
// package — left Studio's menu for this group: Setup holds what is global.
// Priority 100 keeps it first, where plugin-security's catalog entries were.
// Gate: `studio.access`, the Studio entry that admitted a principal to the
// directory before it moved, so moving it widens nobody's view; the Setup
// app's `setup.access` applies on top. Its items still open in Studio
// (ADR-0146 D1). The console binds the ref to its page (app-shell
// `builtinComponents`).
priority: 100,
items: [
{ id: 'nav_access_directory', type: 'component', label: 'Positions and Permissions', componentRef: 'security:access-directory', icon: 'key-round', requiredPermissions: ['studio.access'] },
],
},
{
app: 'setup',
group: 'group_access_control',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const arSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_sso_providers.label': '7b06b6a6abf53ba4',
'apps.setup.navigation.nav_scim_credentials.label': '2d94a32c33ca2957',
'apps.setup.navigation.nav_api_keys.label': '8cda9851248b0490',
'apps.setup.navigation.nav_access_directory.label': '60b7217f289b11e9',
'apps.setup.navigation.nav_approvals_inbox.label': '0a9269b20d0266c9',
'apps.setup.navigation.nav_approval_requests.label': 'aafd0f7c6a376f55',
'apps.setup.navigation.nav_approval_actions.label': 'd2ebad7acfd50978',
Expand Down
1 change: 1 addition & 0 deletions packages/platform-objects/src/apps/translations/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const ar: TranslationData = {
// the same case as the entry above; see `en.ts` (#31123).
nav_scim_credentials: { label: 'بيانات اعتماد SCIM' },
nav_api_keys: { label: 'مفاتيح API' },
nav_access_directory: { label: 'المناصب والأذونات' },

// صندوق الموافقات = the Approvals Inbox component (#7234) — the surface
// with decision actions. The three below are the engine's raw tables; the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const deSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_sso_providers.label': '7b06b6a6abf53ba4',
'apps.setup.navigation.nav_scim_credentials.label': '2d94a32c33ca2957',
'apps.setup.navigation.nav_api_keys.label': '8cda9851248b0490',
'apps.setup.navigation.nav_access_directory.label': '60b7217f289b11e9',
'apps.setup.navigation.nav_approvals_inbox.label': '0a9269b20d0266c9',
'apps.setup.navigation.nav_approval_requests.label': 'aafd0f7c6a376f55',
'apps.setup.navigation.nav_approval_actions.label': 'd2ebad7acfd50978',
Expand Down
1 change: 1 addition & 0 deletions packages/platform-objects/src/apps/translations/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const de: TranslationData = {
// of `sys_scim_connection_credential.pluralLabel`.
nav_scim_credentials: { label: 'SCIM-Anmeldedaten' },
nav_api_keys: { label: 'API-Schlüssel' },
nav_access_directory: { label: 'Positionen und Berechtigungen' },

// Genehmigungseingang = the Approvals Inbox component (#7234) — the
// surface with decision actions. The three below are the engine's raw
Expand Down
1 change: 1 addition & 0 deletions packages/platform-objects/src/apps/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const en: TranslationData = {
// list; the label is the short form of that object's `pluralLabel`.
nav_scim_credentials: { label: 'SCIM Credentials' },
nav_api_keys: { label: 'API Keys' },
nav_access_directory: { label: 'Positions and Permissions' },

// Approvals. `nav_approvals_inbox` is the working surface (#7234); the
// three below it are the engine's raw tables, kept as the admin view.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const esESSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_sso_providers.label': '7b06b6a6abf53ba4',
'apps.setup.navigation.nav_scim_credentials.label': '2d94a32c33ca2957',
'apps.setup.navigation.nav_api_keys.label': '8cda9851248b0490',
'apps.setup.navigation.nav_access_directory.label': '60b7217f289b11e9',
'apps.setup.navigation.nav_connect_agent.label': 'a4542422fb5e8a68',
'apps.setup.navigation.nav_approvals_inbox.label': '0a9269b20d0266c9',
'apps.setup.navigation.nav_approval_requests.label': 'aafd0f7c6a376f55',
Expand Down
1 change: 1 addition & 0 deletions packages/platform-objects/src/apps/translations/es-ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const esES: TranslationData = {
// the same case as the entry above; see `en.ts` (#31123).
nav_scim_credentials: { label: 'Credenciales SCIM' },
nav_api_keys: { label: 'Claves API' },
nav_access_directory: { label: 'Puestos y permisos' },

nav_approvals_inbox: { label: 'Centro de aprobaciones' },
nav_approval_requests: { label: 'Solicitudes' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const frSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_sso_providers.label': '7b06b6a6abf53ba4',
'apps.setup.navigation.nav_scim_credentials.label': '2d94a32c33ca2957',
'apps.setup.navigation.nav_api_keys.label': '8cda9851248b0490',
'apps.setup.navigation.nav_access_directory.label': '60b7217f289b11e9',
'apps.setup.navigation.nav_approvals_inbox.label': '0a9269b20d0266c9',
'apps.setup.navigation.nav_approval_requests.label': 'aafd0f7c6a376f55',
'apps.setup.navigation.nav_approval_actions.label': 'd2ebad7acfd50978',
Expand Down
1 change: 1 addition & 0 deletions packages/platform-objects/src/apps/translations/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const fr: TranslationData = {
// of `sys_scim_connection_credential.pluralLabel`.
nav_scim_credentials: { label: 'Identifiants SCIM' },
nav_api_keys: { label: 'Clés API' },
nav_access_directory: { label: 'Postes et autorisations' },

// Centre d’approbations = the Approvals Inbox component (#7234) — the
// surface with decision actions. The three below are the engine's raw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const jaJPSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_sso_providers.label': '7b06b6a6abf53ba4',
'apps.setup.navigation.nav_scim_credentials.label': '2d94a32c33ca2957',
'apps.setup.navigation.nav_api_keys.label': '8cda9851248b0490',
'apps.setup.navigation.nav_access_directory.label': '60b7217f289b11e9',
'apps.setup.navigation.nav_connect_agent.label': 'a4542422fb5e8a68',
'apps.setup.navigation.nav_approvals_inbox.label': '0a9269b20d0266c9',
'apps.setup.navigation.nav_approval_requests.label': 'aafd0f7c6a376f55',
Expand Down
1 change: 1 addition & 0 deletions packages/platform-objects/src/apps/translations/ja-JP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const jaJP: TranslationData = {
// the same case as the entry above; see `en.ts` (#31123).
nav_scim_credentials: { label: 'SCIM 資格情報' },
nav_api_keys: { label: 'API キー' },
nav_access_directory: { label: '役職と権限' },

nav_approvals_inbox: { label: '承認センター' },
nav_approval_requests: { label: 'リクエスト' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const koSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_sso_providers.label': '7b06b6a6abf53ba4',
'apps.setup.navigation.nav_scim_credentials.label': '2d94a32c33ca2957',
'apps.setup.navigation.nav_api_keys.label': '8cda9851248b0490',
'apps.setup.navigation.nav_access_directory.label': '60b7217f289b11e9',
'apps.setup.navigation.nav_approvals_inbox.label': '0a9269b20d0266c9',
'apps.setup.navigation.nav_approval_requests.label': 'aafd0f7c6a376f55',
'apps.setup.navigation.nav_approval_actions.label': 'd2ebad7acfd50978',
Expand Down
1 change: 1 addition & 0 deletions packages/platform-objects/src/apps/translations/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const ko: TranslationData = {
// of `sys_scim_connection_credential.pluralLabel`.
nav_scim_credentials: { label: 'SCIM 자격 증명' },
nav_api_keys: { label: 'API 키' },
nav_access_directory: { label: '직위 및 권한' },

// 승인 받은편지함 = the Approvals Inbox component (#7234) — the surface
// with decision actions. The three below are the engine's raw tables;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const ptBRSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_sso_providers.label': '7b06b6a6abf53ba4',
'apps.setup.navigation.nav_scim_credentials.label': '2d94a32c33ca2957',
'apps.setup.navigation.nav_api_keys.label': '8cda9851248b0490',
'apps.setup.navigation.nav_access_directory.label': '60b7217f289b11e9',
'apps.setup.navigation.nav_approvals_inbox.label': '0a9269b20d0266c9',
'apps.setup.navigation.nav_approval_requests.label': 'aafd0f7c6a376f55',
'apps.setup.navigation.nav_approval_actions.label': 'd2ebad7acfd50978',
Expand Down
1 change: 1 addition & 0 deletions packages/platform-objects/src/apps/translations/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const ptBR: TranslationData = {
// of `sys_scim_connection_credential.pluralLabel`.
nav_scim_credentials: { label: 'Credenciais SCIM' },
nav_api_keys: { label: 'Chaves de API' },
nav_access_directory: { label: 'Cargos e permissões' },

// Central de aprovações = the Approvals Inbox component (#7234) — the
// surface with decision actions. The three below are the engine's raw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const ruSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_sso_providers.label': '7b06b6a6abf53ba4',
'apps.setup.navigation.nav_scim_credentials.label': '2d94a32c33ca2957',
'apps.setup.navigation.nav_api_keys.label': '8cda9851248b0490',
'apps.setup.navigation.nav_access_directory.label': '60b7217f289b11e9',
'apps.setup.navigation.nav_approvals_inbox.label': '0a9269b20d0266c9',
'apps.setup.navigation.nav_approval_requests.label': 'aafd0f7c6a376f55',
'apps.setup.navigation.nav_approval_actions.label': 'd2ebad7acfd50978',
Expand Down
1 change: 1 addition & 0 deletions packages/platform-objects/src/apps/translations/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const ru: TranslationData = {
// of `sys_scim_connection_credential.pluralLabel`.
nav_scim_credentials: { label: 'Учётные данные SCIM' },
nav_api_keys: { label: 'API-ключи' },
nav_access_directory: { label: 'Должности и разрешения' },

// Центр согласований = the Approvals Inbox component (#7234) — the
// surface with decision actions. The three below are the engine's raw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const zhCNSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_sso_providers.label': '7b06b6a6abf53ba4',
'apps.setup.navigation.nav_scim_credentials.label': '2d94a32c33ca2957',
'apps.setup.navigation.nav_api_keys.label': '8cda9851248b0490',
'apps.setup.navigation.nav_access_directory.label': '60b7217f289b11e9',
'apps.setup.navigation.nav_connect_agent.label': 'a4542422fb5e8a68',
'apps.setup.navigation.nav_approvals_inbox.label': '0a9269b20d0266c9',
'apps.setup.navigation.nav_approval_requests.label': 'aafd0f7c6a376f55',
Expand Down
1 change: 1 addition & 0 deletions packages/platform-objects/src/apps/translations/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const zhCN: TranslationData = {
// the same case as the entry above; see `en.ts` (#31123).
nav_scim_credentials: { label: 'SCIM 凭据' },
nav_api_keys: { label: 'API 密钥' },
nav_access_directory: { label: '岗位与权限' },

// 审批中心 = the Approvals Inbox component (#7234) — the surface with
// decision actions. The three below are the engine's raw tables.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const zhHantSourceHashes: Readonly<Record<string, string>> = {
'apps.setup.navigation.nav_sso_providers.label': '7b06b6a6abf53ba4',
'apps.setup.navigation.nav_scim_credentials.label': '2d94a32c33ca2957',
'apps.setup.navigation.nav_api_keys.label': '8cda9851248b0490',
'apps.setup.navigation.nav_access_directory.label': '60b7217f289b11e9',
'apps.setup.navigation.nav_connect_agent.label': 'a4542422fb5e8a68',
'apps.setup.navigation.nav_approvals_inbox.label': '0a9269b20d0266c9',
'apps.setup.navigation.nav_approval_requests.label': 'aafd0f7c6a376f55',
Expand Down
1 change: 1 addition & 0 deletions packages/platform-objects/src/apps/translations/zh-Hant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const zhHant: TranslationData = {
// the same case as the entry above; see `en.ts` (#31123).
nav_scim_credentials: { label: 'SCIM 憑證' },
nav_api_keys: { label: 'API 金鑰' },
nav_access_directory: { label: '職位與權限' },

// 核准中心 = the Approvals Inbox component (#7234) — the surface with
// decision actions. The three below are the engine's raw tables; the
Expand Down
Loading
Loading