From a199be819af49318eaf17274c67273f3c54ce6e2 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 08:17:02 +0000 Subject: [PATCH 1/5] feat(platform-objects): offer Add User and Import Users on a cloud-managed environment Two sys_user actions point at the pending-person doors (admin/add-sso-user, admin/import-sso-users), offered only to a platform administrator while features.cloudManaged is on. The password and invitation actions stay hidden there; off a managed environment nothing changes. Claude-Session: https://claude.ai/code/session_01FEkQ5o1t4Dbyp8n9chrc65 Co-Authored-By: Claude --- .../33186-managed-add-people-actions.md | 12 ++ .../identity/cloud-managed-visibility.test.ts | 76 +++++++++++ .../src/identity/sys-user.object.ts | 122 +++++++++++++++++- ...platform-admin-affordance-standing.test.ts | 38 ++++-- .../src/platform-objects.test.ts | 7 + .../plugin-auth/src/pending-sso-users.test.ts | 89 +++++++++++++ 6 files changed, 330 insertions(+), 14 deletions(-) create mode 100644 .changeset/33186-managed-add-people-actions.md diff --git a/.changeset/33186-managed-add-people-actions.md b/.changeset/33186-managed-add-people-actions.md new file mode 100644 index 00000000000..65b0e95b12e --- /dev/null +++ b/.changeset/33186-managed-add-people-actions.md @@ -0,0 +1,12 @@ +--- +'@objectstack/platform-objects': patch +--- + +feat(platform-objects): Setup → Users on a cloud-managed environment offers Add User and Import Users again, through the pending-person doors + +Clause-②: yes (widening) — two new `sys_user` actions, `add_sso_user` (target `POST /api/v1/auth/admin/add-sso-user`) and `import_sso_users` (target `POST /api/v1/auth/admin/import-sso-users`), each offered only to a platform administrator on a cloud-managed environment (`current_user.isPlatformAdmin == true && has(features.cloudManaged) && features.cloudManaged == true`) and declaring `requiredPermissions: ['manage_users']`; their labels, descriptions, params and result dialogs are new translation keys in the `sys_user` bundles. Nothing that was offered before is hidden: off a managed environment both new actions are hidden and every existing action answers as before. +Metadata-protocol: none + +On a cloud-managed environment (`OS_CLOUD_MANAGED=1`) the password and invitation actions stay hidden, as before: `create_user`, `set_user_password` and the four `invite_user` mirrors. In their place a platform administrator now sees **Add User** (email, name, and optionally a position, a permission set and the manager's email address) and **Import Users** (CSV text with the columns `email`, `name`, `positions`, `permission_sets` and `manager_id`, at most 500 rows). Each adds a pending person ahead of their first sign-in, stored with `sys_user.source` = `idp_pending` and no password, who then signs in through the hosting organisation's identity provider. The Add User result names an address that was already pending (the hosting organisation is told again, and the position, permission set or manager sent with it is not applied), a manager that could not be linked, and an invitation the hosting organisation was not told about. The Import Users result shows how many rows were added, already pending or not added, and the answer for each row. + +Neither action is exposed to AI agents (no `ai` block): both are human-only until assessed. diff --git a/packages/platform-objects/src/identity/cloud-managed-visibility.test.ts b/packages/platform-objects/src/identity/cloud-managed-visibility.test.ts index 3a8d519d601..6d2fe3dac83 100644 --- a/packages/platform-objects/src/identity/cloud-managed-visibility.test.ts +++ b/packages/platform-objects/src/identity/cloud-managed-visibility.test.ts @@ -75,3 +75,79 @@ describe('features.cloudManaged hides the six doors that add people', () => { expect(offered(visibleOf(def, name), { organization: false, admin: false, cloudManaged: false })).toBe(false); }); }); + +/** + * The managed counterparts (cloud#4465 child 1b): `add_sso_user` and + * `import_sso_users` add a PENDING person through plugin-auth's + * `admin/add-sso-user` / `admin/import-sso-users`, which answer only on a + * cloud-managed environment (`409 RESOURCE_CONFLICT` elsewhere) and only to a + * platform administrator. So each is offered exactly there: the flag on AND + * the standing; hidden off a managed environment, hidden while the console + * holds no served flag (a `false`, never a fault), and hidden from every + * caller below the rung, the organization owner included. + */ +const MANAGED_ADD: ReadonlyArray<[string, string, string]> = [ + ['sys_user.add_sso_user', 'add_sso_user', '/api/v1/auth/admin/add-sso-user'], + ['sys_user.import_sso_users', 'import_sso_users', '/api/v1/auth/admin/import-sso-users'], +]; + +/** An organization owner: every grade the invitation mirrors ask for, without the platform-admin rung. */ +const ORG_OWNER = { id: 'u_owner', email: 'owner@example.com', positions: ['org_owner'], isPlatformAdmin: false }; + +function offeredTo(subject: typeof ADMIN, source: string, features: Record): boolean | string { + const r = celEngine.evaluate( + { dialect: 'cel', source }, + { record: {}, extra: { current_user: subject, user: subject, ctx: { user: subject }, features } }, + ); + if (!r.ok) return `FAULT ${r.error.message.split('\n')[0].trim()}`; + return typeof r.value === 'boolean' ? r.value : `NON-BOOLEAN ${JSON.stringify(r.value)}`; +} + +function declared(name: string): Record { + const action = ((SysUser.actions ?? []) as Array>).find((a) => a.name === name); + if (!action) throw new Error(`no action ${name}`); + return action; +} + +describe('features.cloudManaged offers the two doors that add a pending person', () => { + it.each(MANAGED_ADD)('%s targets its pending-person door and declares no admin-plugin gate', (_site, name, target) => { + const action = declared(name); + expect(action.type).toBe('api'); + expect(action.target).toBe(target); + // The doors mount with or without the better-auth admin plugin (#33227), so + // an `admin` gate would hide them on the Free and Team kernels they serve. + expect(action.requiresFeature).toBeUndefined(); + }); + + it.each(MANAGED_ADD)('%s is offered to the platform admin while the environment is cloud-managed', (_site, name) => { + expect(offeredTo(ADMIN, visibleOf(SysUser, name), { ...OTHER_FLAGS, cloudManaged: true })).toBe(true); + }); + + it.each(MANAGED_ADD)('%s is hidden when the flag is off: its door answers 409 there', (_site, name) => { + expect(offeredTo(ADMIN, visibleOf(SysUser, name), { ...OTHER_FLAGS, cloudManaged: false })).toBe(false); + }); + + it.each(MANAGED_ADD)('%s is hidden, not faulted, while no flag is served', (_site, name) => { + expect(offeredTo(ADMIN, visibleOf(SysUser, name), { ...OTHER_FLAGS })).toBe(false); + }); + + it.each(MANAGED_ADD)('%s is hidden from an organization owner below the platform-admin rung, even when managed', (_site, name) => { + expect(offeredTo(ORG_OWNER, visibleOf(SysUser, name), { ...OTHER_FLAGS, cloudManaged: true })).toBe(false); + }); + + it('on a managed environment the platform admin is offered the two pending-person doors and none of the six', () => { + const managed = { ...OTHER_FLAGS, cloudManaged: true }; + const offeredSites = [...SIX.map(([site, def, name]) => [site, def, name] as const), ...MANAGED_ADD.map(([site, name]) => [site, SysUser, name] as const)] + .filter(([, def, name]) => offeredTo(ADMIN, visibleOf(def, name), managed) === true) + .map(([site]) => site); + expect(offeredSites).toEqual(['sys_user.add_sso_user', 'sys_user.import_sso_users']); + }); + + it('off a managed environment the platform admin is offered the six as before and neither pending-person door', () => { + const unmanaged = { ...OTHER_FLAGS, cloudManaged: false }; + const offeredSites = [...SIX.map(([site, def, name]) => [site, def, name] as const), ...MANAGED_ADD.map(([site, name]) => [site, SysUser, name] as const)] + .filter(([, def, name]) => offeredTo(ADMIN, visibleOf(def, name), unmanaged) === true) + .map(([site]) => site); + expect(offeredSites).toEqual(SIX.map(([site]) => site)); + }); +}); diff --git a/packages/platform-objects/src/identity/sys-user.object.ts b/packages/platform-objects/src/identity/sys-user.object.ts index 91eae23cc09..cde955fa973 100644 --- a/packages/platform-objects/src/identity/sys-user.object.ts +++ b/packages/platform-objects/src/identity/sys-user.object.ts @@ -63,7 +63,17 @@ const SERVICE_ACCOUNT_ADMIN_VISIBLE = [ ...[MEMBERSHIP_ROLE_OWNER, MEMBERSHIP_ROLE_ADMIN].map((grade) => `'${mapMembershipRole(grade)}' in current_user.positions`), ].join(' || '); -const TEMPORARY_PASSWORD_LABEL = 'Temporary password: copy it now, it is shown only once and never stored'; +/** + * Who is offered `add_sso_user` / `import_sso_users`: the platform-admin + * standing their doors' gate judges (ADR-0068 D4), on a cloud-managed + * environment only, the one place those doors answer. The two halves of the + * gate that hides `create_user` and the invitation mirrors there, read the + * other way. + */ +const MANAGED_ADD_PERSON_VISIBLE = + 'current_user.isPlatformAdmin == true && has(features.cloudManaged) && features.cloudManaged == true'; + +const TEMPORARY_PASSWORD_LABEL ='Temporary password: copy it now, it is shown only once and never stored'; /** * sys_user — System User Object @@ -418,6 +428,116 @@ export const SysUser = ObjectSchema.create({ ], }, }, + // ── Adding people on a cloud-managed environment (cloud#4465 child 1b) ─ + // + // On a cloud-managed environment the password and invitation doors above + // answer 409 and their actions are hidden (`features.cloudManaged`). These + // two are their managed counterparts: each adds a PENDING person ahead of + // their first sign-in (`sys_user.source = 'idp_pending'`, no password), + // who then signs in through the hosting organisation's identity provider. + // The doors are plugin-auth's `admin/add-sso-user` / `admin/import-sso-users`: + // platform-admin gated (ADR-0068), mounted with or without the better-auth + // admin plugin (so no `requiresFeature: 'admin'`), and answering + // `409 RESOURCE_CONFLICT` off a managed environment. So each is offered + // exactly where its door answers: the platform-admin standing AND the + // managed flag on. `has()` keeps both hidden while the console holds no + // served flag, rather than faulting (see `create_user`'s email params). + // No `ai` block: human-only and unassessed (ADR-0011 identity-actions note). + { + name: 'add_sso_user', + label: 'Add User', + description: + "Add someone by email address before their first sign-in. They sign in through your organization's identity provider; no password is set here.", + icon: 'user-plus', + variant: 'primary', + locations: ['list_toolbar'], + type: 'api', + target: '/api/v1/auth/admin/add-sso-user', + requiredPermissions: [...PLATFORM_ADMIN_USERS_GATE], + visible: MANAGED_ADD_PERSON_VISIBLE, + // The door's body is a closed key set: email, name, positions, + // permissionSets, manager. `positions` / `permissionSets` take a list or + // one `;`-separated string, so each picker's single name lands as a list + // of one; more are granted on the record afterwards. + params: [ + { field: 'email', required: true }, + { field: 'name', required: false }, + { + name: 'positions', + type: 'text', + widget: 'position-ref', + label: 'Position', + required: false, + helpText: 'Optional. The position this person holds from the moment they are added.', + }, + { + name: 'permissionSets', + type: 'text', + widget: 'permission-ref', + label: 'Permission Set', + required: false, + helpText: 'Optional. Grants this permission set to the person, so they can open their apps on first sign-in.', + }, + { + name: 'manager', + type: 'email', + label: 'Manager Email', + required: false, + helpText: "Optional. The email address of this person's manager, a user of this environment.", + }, + ], + refreshAfter: true, + resultDialog: { + title: 'User Added', + acknowledge: 'Done', + // Each field is skipped when its path is absent from the answer: + // `notApplied` only on a re-add of a person still pending, `managerError` + // only when no manager was linked, `host.reason` only when the hosting + // organisation was not told. + fields: [ + { path: 'email', label: 'Email', format: 'text' }, + { path: 'notApplied', label: 'Already pending, so not applied (set these on the record)', format: 'json' }, + { path: 'managerError', label: 'Manager', format: 'text' }, + { path: 'host.reason', label: 'Invitation not sent', format: 'text' }, + ], + }, + }, + { + name: 'import_sso_users', + label: 'Import Users', + description: + "Add many people at once from CSV text. Each row is added on its own, so a bad row fails alone. They sign in through your organization's identity provider; no password is set here.", + icon: 'upload', + variant: 'secondary', + locations: ['list_toolbar'], + type: 'api', + target: '/api/v1/auth/admin/import-sso-users', + requiredPermissions: [...PLATFORM_ADMIN_USERS_GATE], + visible: MANAGED_ADD_PERSON_VISIBLE, + // The door takes `{ csv }` or `{ rows }`; the dialog sends the text. + params: [ + { + name: 'csv', + type: 'textarea', + label: 'CSV', + required: true, + helpText: + 'A header row, then one person per line, at most 500. Columns: email, name, positions and permission_sets ' + + "(machine names separated by ;) and manager_id (the manager's email address).", + }, + ], + refreshAfter: true, + resultDialog: { + title: 'Import Finished', + acknowledge: 'Done', + fields: [ + { path: 'summary.added', label: 'Added', format: 'text' }, + { path: 'summary.alreadyPending', label: 'Already pending, told again', format: 'text' }, + { path: 'summary.failed', label: 'Not added', format: 'text' }, + { path: 'rows', label: 'Result per row', format: 'json' }, + ], + }, + }, { name: 'set_user_password', label: 'Set Password', diff --git a/packages/platform-objects/src/platform-admin-affordance-standing.test.ts b/packages/platform-objects/src/platform-admin-affordance-standing.test.ts index b08df191049..e0fdedea272 100644 --- a/packages/platform-objects/src/platform-admin-affordance-standing.test.ts +++ b/packages/platform-objects/src/platform-admin-affordance-standing.test.ts @@ -169,14 +169,22 @@ async function loadActions(): Promise<{ files: number; actions: FirstPartyAction } /** Every capability flag on, so no feature term hides the standing's verdict. */ -const FEATURES = { +const CAPABILITIES = { organization: true, multiOrgEnabled: true, twoFactor: true, oidcProvider: true, admin: true, phoneNumber: true, apiKey: true, sso: true, - // The managed mode off. It is hide-when-on, so ON would hide `create_user` - // and `set_user_password` from the platform admin too, by design. - cloudManaged: false, }; +/** + * Both managed modes. `cloudManaged` hides `create_user` and + * `set_user_password` when on and offers `add_sso_user` / `import_sso_users` + * only when on, by design, so a member counts as offered when ONE mode offers + * it, and no refused principal may be offered a member in EITHER mode. + */ +const MODES: ReadonlyArray> = [ + { ...CAPABILITIES, cloudManaged: false }, + { ...CAPABILITIES, cloudManaged: true }, +]; + type Subject = { id: string; email: string; isPlatformAdmin: boolean; positions: string[] }; /** The one principal the gate admits — holding the rung, and no position that names it. */ @@ -194,16 +202,18 @@ const REFUSED: ReadonlyArray<[string, Subject]> = [ ], ]; -/** The console's binding: the whole scope as `extra`, one subject under every alias. */ +/** The console's binding: the whole scope as `extra`, one subject under every alias; offered in either managed mode. */ function offered(source: string, subject: Subject, record: Record): boolean { - const r = celEngine.evaluate( - { dialect: 'cel', source }, - { - record, - extra: { current_user: subject, user: subject, ctx: { user: subject }, os: { user: subject }, features: FEATURES }, - }, - ); - return r.ok && r.value === true; + return MODES.some((features) => { + const r = celEngine.evaluate( + { dialect: 'cel', source }, + { + record, + extra: { current_user: subject, user: subject, ctx: { user: subject }, os: { user: subject }, features }, + }, + ); + return r.ok && r.value === true; + }); } /** @@ -246,6 +256,8 @@ describe('platform-admin-gated doors: every first-party action offers itself to 'sys_user.unban_user', 'sys_user.unlock_user', 'sys_user.create_user', + 'sys_user.add_sso_user', + 'sys_user.import_sso_users', 'sys_user.set_user_password', 'sys_user.impersonate_user', 'sys_user.set_user_manager', diff --git a/packages/platform-objects/src/platform-objects.test.ts b/packages/platform-objects/src/platform-objects.test.ts index 55bd60ea027..29b8f99bcb3 100644 --- a/packages/platform-objects/src/platform-objects.test.ts +++ b/packages/platform-objects/src/platform-objects.test.ts @@ -739,6 +739,8 @@ describe('feature-gate lowering matrix (#2874)', () => { // through `requiresFeature`, so this gate is authored in `visible` and both // lowerings compose after it. const MANAGED = 'features.cloudManaged != true'; + // ...and offers the two doors that add a pending person, there only. + const MANAGED_ON = 'has(features.cloudManaged) && features.cloudManaged == true'; const rows: Array<[string, { actions?: readonly { name?: string; visible?: unknown; params?: readonly unknown[] }[] }, string, string]> = [ ['SysOrganization', SysOrganization, 'create_organization', MULTI_ORG], @@ -753,6 +755,11 @@ describe('feature-gate lowering matrix (#2874)', () => { ['SysOrganization', SysOrganization, 'leave_organization', MULTI_ORG], ['SysUser', SysUser, 'invite_user', `((${MANAGED}) && ${INVITE}) && ${ORG}`], ['SysUser', SysUser, 'create_user', `(${STANDING} && ${MANAGED}) && features.admin == true`], + // Their managed counterparts carry no feature gate (their doors mount + // without the admin plugin), so the authored predicate is served as + // written: the standing, then the managed flag ON, guarded by `has()`. + ['SysUser', SysUser, 'add_sso_user', `${STANDING} && ${MANAGED_ON}`], + ['SysUser', SysUser, 'import_sso_users', `${STANDING} && ${MANAGED_ON}`], // [#11544] Third mirror of `invite_user` — the Members tab's own copy of // the email-invite entry. Same gate as the sys_user / sys_invitation rows. ['SysMember', SysMember, 'invite_user', `((${MANAGED}) && ${INVITE}) && ${ORG}`], diff --git a/packages/plugins/plugin-auth/src/pending-sso-users.test.ts b/packages/plugins/plugin-auth/src/pending-sso-users.test.ts index 5b948143460..40f96d0c027 100644 --- a/packages/plugins/plugin-auth/src/pending-sso-users.test.ts +++ b/packages/plugins/plugin-auth/src/pending-sso-users.test.ts @@ -33,6 +33,7 @@ import { runAddSsoUser } from './pending-sso-users'; import { INTERNAL_ERROR_MESSAGE } from '@objectstack/types'; import { createMemoryEngine } from './impersonation-bearer-rotation.test'; import { inviteForAudienceGate } from './audience-gate-test-support'; +import { SysUser } from '@objectstack/platform-objects/identity'; const SECRET = 'test-secret-at-least-32-chars-long!!'; const PASSWORD = 'S3cure!Passw0rd-33181'; @@ -983,3 +984,91 @@ describe('[#33181] the host event names the administrator\'s cloud id from their expect(s.told[0]!.event).not.toHaveProperty('actorCloudUserId'); }); }); + +// ───────────────────────────────────────────────────────────────────────────── +// Setup → Users: the managed add actions reach these doors (cloud#4465 child 1b) +// ───────────────────────────────────────────────────────────────────────────── +// +// `sys_user.add_sso_user` and `sys_user.import_sso_users` are these doors' +// first-party callers. Each pin reads the DECLARED action and posts what its +// dialog submits, the way the console composes a `type: 'api'` body: the +// values collected for the params it declares, then `bodyExtra` merged last. +// The door's body is a closed key set, so a param it does not take would be +// answered 400 here rather than dropped. + +describe('[#33186] the Setup → Users add actions reach the pending-person doors', () => { + function declaredAction(name: string) { + const action = (SysUser.actions ?? []).find((a) => a.name === name); + if (!action) throw new Error(`sys_user declares no action named "${name}"`); + return action; + } + + /** The action's `target` under this mount, and the body its dialog submits. */ + function dialogCall(name: string, collected: Record) { + const action = declaredAction(name); + const target = String(action.target); + expect(target.startsWith(BASE), `${name} targets the auth mount`).toBe(true); + const declaredNames = (action.params ?? []).map((p) => p.name ?? p.field); + for (const key of Object.keys(collected)) expect(declaredNames, `${name} declares the ${key} param`).toContain(key); + return { path: target.slice(BASE.length), body: { ...collected, ...(action.bodyExtra ?? {}) } }; + } + + const ADD_DIALOG = { + email: 'dialog.person@example.com', + name: 'Dialog Person', + // The pickers submit one name each; the door reads it as a list of one. + positions: 'sales_rep', + permissionSets: 'crm_user', + manager: EMAILS.member, + }; + + it('add_sso_user on a managed boot: the dialog adds a pending person with the picked grants and manager', async () => { + const s = await managedStage(); + const { path, body } = dialogCall('add_sso_user', ADD_DIALOG); + + const res = await s.fire(path, body, s.bearers.admin); + const answer: any = await res.json(); + + expect(res.status, JSON.stringify(answer)).toBe(201); + const row = s.row(ADD_DIALOG.email)!; + expect(row.source).toBe(PENDING_SSO_SOURCE); + expect(s.rowsOf('sys_account', String(row.id))).toHaveLength(0); + expect(s.rowsOf('sys_user_position', String(row.id)).map((r) => r.position)).toEqual(['sales_rep']); + expect(s.rowsOf('sys_user_permission_set', String(row.id)).map((r) => r.permission_set)).toEqual(['crm_user']); + expect(String(row.manager_id)).toBe(s.ids.member); + expect(answer.data).toMatchObject({ email: ADD_DIALOG.email, source: PENDING_SSO_SOURCE, alreadyPending: false, host: { notified: true } }); + }); + + it('import_sso_users on a managed boot: the dialog\'s CSV adds each row as a pending person', async () => { + const s = await managedStage(); + const csv = 'email,name,positions\ncsv.one@example.com,CSV One,sales_rep\ncsv.two@example.com,CSV Two,\n'; + const { path, body } = dialogCall('import_sso_users', { csv }); + + const res = await s.fire(path, body, s.bearers.admin); + const answer: any = await res.json(); + + expect(res.status, JSON.stringify(answer)).toBe(200); + expect(answer.data.summary).toEqual({ total: 2, added: 2, alreadyPending: 0, failed: 0 }); + expect(answer.data.rows.map((r: any) => [r.row, r.email, r.ok])).toEqual([ + [1, 'csv.one@example.com', true], + [2, 'csv.two@example.com', true], + ]); + for (const email of ['csv.one@example.com', 'csv.two@example.com']) expect(s.row(email)?.source).toBe(PENDING_SSO_SOURCE); + }); + + it('CONTROL: off a managed environment the same targets answer 409 and add no one', async () => { + const s = await stage(); + const before = s.users().length; + for (const [name, collected] of [ + ['add_sso_user', ADD_DIALOG], + ['import_sso_users', { csv: 'email,name\ncontrol.person@example.com,Control\n' }], + ] as const) { + const { path, body } = dialogCall(name, collected); + const v = await verdict(await s.fire(path, body, s.bearers.admin)); + expect(v.status, `${name}: ${v.text}`).toBe(409); + expect(v.code).toBe('RESOURCE_CONFLICT'); + } + expect(s.users()).toHaveLength(before); + expect(s.row(ADD_DIALOG.email)).toBeUndefined(); + }); +}); From 71185c1d1c03579ff2788cb5214b4a8718902434 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 08:32:47 +0000 Subject: [PATCH 2/5] i18n(platform-objects): bundle keys for Add User and Import Users in every locale Claude-Session: https://claude.ai/code/session_01FEkQ5o1t4Dbyp8n9chrc65 Co-Authored-By: Claude --- .../apps/translations/ar.objects.generated.ts | 48 +++++++++++++++++++ .../ar.source-hashes.generated.ts | 1 + .../apps/translations/de.objects.generated.ts | 48 +++++++++++++++++++ .../de.source-hashes.generated.ts | 2 + .../apps/translations/en.objects.generated.ts | 48 +++++++++++++++++++ .../translations/es-ES.objects.generated.ts | 48 +++++++++++++++++++ .../es-ES.source-hashes.generated.ts | 1 + .../apps/translations/fr.objects.generated.ts | 48 +++++++++++++++++++ .../fr.source-hashes.generated.ts | 1 + .../translations/ja-JP.objects.generated.ts | 48 +++++++++++++++++++ .../ja-JP.source-hashes.generated.ts | 1 + .../apps/translations/ko.objects.generated.ts | 48 +++++++++++++++++++ .../ko.source-hashes.generated.ts | 1 + .../translations/pt-BR.objects.generated.ts | 48 +++++++++++++++++++ .../pt-BR.source-hashes.generated.ts | 1 + .../apps/translations/ru.objects.generated.ts | 48 +++++++++++++++++++ .../ru.source-hashes.generated.ts | 1 + .../translations/zh-CN.objects.generated.ts | 48 +++++++++++++++++++ .../zh-CN.source-hashes.generated.ts | 1 + .../translations/zh-Hant.objects.generated.ts | 48 +++++++++++++++++++ .../zh-Hant.source-hashes.generated.ts | 1 + 21 files changed, 539 insertions(+) diff --git a/packages/platform-objects/src/apps/translations/ar.objects.generated.ts b/packages/platform-objects/src/apps/translations/ar.objects.generated.ts index 3ca771341e5..94b82d9d19d 100644 --- a/packages/platform-objects/src/apps/translations/ar.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/ar.objects.generated.ts @@ -218,6 +218,54 @@ export const arObjects: NonNullable = { } } }, + add_sso_user: { + label: "إضافة مستخدم", + description: "أضف شخصًا بعنوان بريده الإلكتروني قبل أول تسجيل دخول له. يسجّل الدخول عبر موفّر الهوية في مؤسستك؛ لا تُعيَّن كلمة مرور هنا.", + params: { + positions: { + label: "المنصب", + helpText: "اختياري. المنصب الذي يشغله هذا الشخص منذ لحظة إضافته." + }, + permissionSets: { + label: "مجموعة الأذونات", + helpText: "اختياري. يمنح هذا الشخص مجموعة الأذونات هذه، ليتمكن من فتح تطبيقاته عند أول تسجيل دخول." + }, + manager: { + label: "البريد الإلكتروني للمدير", + helpText: "اختياري. عنوان البريد الإلكتروني لمدير هذا الشخص، وهو مستخدم في هذه البيئة." + } + }, + resultDialog: { + title: "تمت إضافة المستخدم", + acknowledge: "تم", + fields: { + email: "البريد الإلكتروني", + notApplied: "معلّق بالفعل، لذا لم يُطبَّق (عيّنه في السجل)", + managerError: "المدير", + "host.reason": "لم تُرسَل الدعوة" + } + } + }, + import_sso_users: { + label: "استيراد المستخدمين", + description: "أضف عدة أشخاص دفعة واحدة من نص CSV. يُضاف كل صف على حدة، فيفشل الصف الخاطئ وحده. يسجّلون الدخول عبر موفّر الهوية في مؤسستك؛ لا تُعيَّن كلمة مرور هنا.", + params: { + csv: { + label: "CSV", + helpText: "صف عناوين، ثم شخص واحد في كل سطر، 500 على الأكثر. الأعمدة: email وname وpositions وpermission_sets (أسماء آلية مفصولة بـ ;) وmanager_id (عنوان البريد الإلكتروني للمدير)." + } + }, + resultDialog: { + title: "اكتمل الاستيراد", + acknowledge: "تم", + fields: { + "summary.added": "تمت الإضافة", + "summary.alreadyPending": "معلّق بالفعل، أُبلغ مجددًا", + "summary.failed": "لم تتم الإضافة", + rows: "النتيجة لكل صف" + } + } + }, set_user_password: { label: "تعيين كلمة المرور", successMessage: "تم تحديث كلمة المرور", diff --git a/packages/platform-objects/src/apps/translations/ar.source-hashes.generated.ts b/packages/platform-objects/src/apps/translations/ar.source-hashes.generated.ts index 65d6ae14250..95fadcc230d 100644 --- a/packages/platform-objects/src/apps/translations/ar.source-hashes.generated.ts +++ b/packages/platform-objects/src/apps/translations/ar.source-hashes.generated.ts @@ -84,5 +84,6 @@ export const arGeneratedSourceHashes: Readonly> = { "objects.sys_sso_provider._actions.register_sso_provider.params.tokenEndpoint.label": "7cba958c95cef146", "objects.sys_sso_provider.fields.sign_out_of_idp.help": "ab8ff5fce3001c81", "objects.sys_sso_provider.fields.sign_out_of_idp.label": "212587b8191bb91b", + "objects.sys_user._actions.import_sso_users.params.csv.label": "bfb77802b66a9222", "objects.sys_user.fields.source.options.idp_pending": "3751093c5b65b072", }; diff --git a/packages/platform-objects/src/apps/translations/de.objects.generated.ts b/packages/platform-objects/src/apps/translations/de.objects.generated.ts index 216a9c0cd31..f5cca40f5e9 100644 --- a/packages/platform-objects/src/apps/translations/de.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/de.objects.generated.ts @@ -218,6 +218,54 @@ export const deObjects: NonNullable = { } } }, + add_sso_user: { + label: "Benutzer hinzufügen", + description: "Fügen Sie eine Person vor ihrer ersten Anmeldung per E-Mail-Adresse hinzu. Sie meldet sich über den Identitätsanbieter Ihrer Organisation an; hier wird kein Passwort gesetzt.", + params: { + positions: { + label: "Position", + helpText: "Optional. Die Position, die diese Person ab dem Hinzufügen innehat." + }, + permissionSets: { + label: "Berechtigungssatz", + helpText: "Optional. Weist der Person diesen Berechtigungssatz zu, damit sie ihre Apps bei der ersten Anmeldung öffnen kann." + }, + manager: { + label: "E-Mail der Führungskraft", + helpText: "Optional. Die E-Mail-Adresse der Führungskraft dieser Person, ein Benutzer dieser Umgebung." + } + }, + resultDialog: { + title: "Benutzer hinzugefügt", + acknowledge: "Fertig", + fields: { + email: "E-Mail", + notApplied: "Bereits ausstehend, daher nicht übernommen (am Datensatz festlegen)", + managerError: "Führungskraft", + "host.reason": "Einladung nicht gesendet" + } + } + }, + import_sso_users: { + label: "Benutzer importieren", + description: "Fügen Sie viele Personen auf einmal aus CSV-Text hinzu. Jede Zeile wird einzeln hinzugefügt, eine fehlerhafte Zeile schlägt also allein fehl. Sie melden sich über den Identitätsanbieter Ihrer Organisation an; hier wird kein Passwort gesetzt.", + params: { + csv: { + label: "CSV", + helpText: "Eine Kopfzeile, dann eine Person pro Zeile, höchstens 500. Spalten: email, name, positions und permission_sets (Maschinennamen, durch ; getrennt) sowie manager_id (die E-Mail-Adresse der Führungskraft)." + } + }, + resultDialog: { + title: "Import abgeschlossen", + acknowledge: "Fertig", + fields: { + "summary.added": "Hinzugefügt", + "summary.alreadyPending": "Bereits ausstehend, erneut benachrichtigt", + "summary.failed": "Nicht hinzugefügt", + rows: "Ergebnis pro Zeile" + } + } + }, set_user_password: { label: "Passwort festlegen", successMessage: "Passwort aktualisiert", diff --git a/packages/platform-objects/src/apps/translations/de.source-hashes.generated.ts b/packages/platform-objects/src/apps/translations/de.source-hashes.generated.ts index 6fc5da51ab8..cf91687b0df 100644 --- a/packages/platform-objects/src/apps/translations/de.source-hashes.generated.ts +++ b/packages/platform-objects/src/apps/translations/de.source-hashes.generated.ts @@ -223,6 +223,8 @@ export const deGeneratedSourceHashes: Readonly> = { "objects.sys_team.label": "42b87165ac826b2b", "objects.sys_team.pluralLabel": "3fe8519872f65108", "objects.sys_team_member.fields.team_id.label": "42b87165ac826b2b", + "objects.sys_user._actions.add_sso_user.params.positions.label": "9a24c02e441eb0b4", + "objects.sys_user._actions.import_sso_users.params.csv.label": "bfb77802b66a9222", "objects.sys_user._actions.register_service_account.params.name.label": "5274417ff1ccaf01", "objects.sys_user.fields.name.label": "5274417ff1ccaf01", "objects.sys_user.fields.principal_kind.options.human": "ed18d3469e10aef2", diff --git a/packages/platform-objects/src/apps/translations/en.objects.generated.ts b/packages/platform-objects/src/apps/translations/en.objects.generated.ts index 2f3f2642695..f6647c7b5cb 100644 --- a/packages/platform-objects/src/apps/translations/en.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/en.objects.generated.ts @@ -218,6 +218,54 @@ export const enObjects: NonNullable = { } } }, + add_sso_user: { + label: "Add User", + description: "Add someone by email address before their first sign-in. They sign in through your organization's identity provider; no password is set here.", + params: { + positions: { + label: "Position", + helpText: "Optional. The position this person holds from the moment they are added." + }, + permissionSets: { + label: "Permission Set", + helpText: "Optional. Grants this permission set to the person, so they can open their apps on first sign-in." + }, + manager: { + label: "Manager Email", + helpText: "Optional. The email address of this person's manager, a user of this environment." + } + }, + resultDialog: { + title: "User Added", + acknowledge: "Done", + fields: { + email: "Email", + notApplied: "Already pending, so not applied (set these on the record)", + managerError: "Manager", + "host.reason": "Invitation not sent" + } + } + }, + import_sso_users: { + label: "Import Users", + description: "Add many people at once from CSV text. Each row is added on its own, so a bad row fails alone. They sign in through your organization's identity provider; no password is set here.", + params: { + csv: { + label: "CSV", + helpText: "A header row, then one person per line, at most 500. Columns: email, name, positions and permission_sets (machine names separated by ;) and manager_id (the manager's email address)." + } + }, + resultDialog: { + title: "Import Finished", + acknowledge: "Done", + fields: { + "summary.added": "Added", + "summary.alreadyPending": "Already pending, told again", + "summary.failed": "Not added", + rows: "Result per row" + } + } + }, set_user_password: { label: "Set Password", successMessage: "Password updated", diff --git a/packages/platform-objects/src/apps/translations/es-ES.objects.generated.ts b/packages/platform-objects/src/apps/translations/es-ES.objects.generated.ts index 74bb59fdff1..d4d9c4b3cd2 100644 --- a/packages/platform-objects/src/apps/translations/es-ES.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/es-ES.objects.generated.ts @@ -218,6 +218,54 @@ export const esESObjects: NonNullable = { } } }, + add_sso_user: { + label: "Añadir usuario", + description: "Añade a alguien por su dirección de correo antes de su primer inicio de sesión. Inicia sesión a través del proveedor de identidad de tu organización; aquí no se establece ninguna contraseña.", + params: { + positions: { + label: "Puesto", + helpText: "Opcional. El puesto que ocupa esta persona desde el momento en que se añade." + }, + permissionSets: { + label: "Conjunto de permisos", + helpText: "Opcional. Concede este conjunto de permisos a la persona para que pueda abrir sus aplicaciones en su primer inicio de sesión." + }, + manager: { + label: "Correo del responsable", + helpText: "Opcional. La dirección de correo del responsable de esta persona, un usuario de este entorno." + } + }, + resultDialog: { + title: "Usuario añadido", + acknowledge: "Hecho", + fields: { + email: "Correo electrónico", + notApplied: "Ya estaba pendiente, así que no se aplicó (configúralo en el registro)", + managerError: "Responsable", + "host.reason": "Invitación no enviada" + } + } + }, + import_sso_users: { + label: "Importar usuarios", + description: "Añade a muchas personas a la vez desde texto CSV. Cada fila se añade por separado, así que una fila errónea falla sola. Inician sesión a través del proveedor de identidad de tu organización; aquí no se establece ninguna contraseña.", + params: { + csv: { + label: "CSV", + helpText: "Una fila de encabezado y después una persona por línea, como máximo 500. Columnas: email, name, positions y permission_sets (nombres de máquina separados por ;) y manager_id (la dirección de correo del responsable)." + } + }, + resultDialog: { + title: "Importación terminada", + acknowledge: "Hecho", + fields: { + "summary.added": "Añadidos", + "summary.alreadyPending": "Ya pendientes, avisados de nuevo", + "summary.failed": "No añadidos", + rows: "Resultado por fila" + } + } + }, set_user_password: { label: "Establecer contraseña", successMessage: "Contraseña actualizada", diff --git a/packages/platform-objects/src/apps/translations/es-ES.source-hashes.generated.ts b/packages/platform-objects/src/apps/translations/es-ES.source-hashes.generated.ts index 0c7bf26abf7..99c0176fec9 100644 --- a/packages/platform-objects/src/apps/translations/es-ES.source-hashes.generated.ts +++ b/packages/platform-objects/src/apps/translations/es-ES.source-hashes.generated.ts @@ -159,5 +159,6 @@ export const esESGeneratedSourceHashes: Readonly> = { "objects.sys_sso_provider.fields.id.label": "00b0385c9c152888", "objects.sys_sso_provider.fields.sign_out_of_idp.help": "ab8ff5fce3001c81", "objects.sys_sso_provider.fields.sign_out_of_idp.label": "212587b8191bb91b", + "objects.sys_user._actions.import_sso_users.params.csv.label": "bfb77802b66a9222", "objects.sys_user.fields.source.options.idp_pending": "3751093c5b65b072", }; diff --git a/packages/platform-objects/src/apps/translations/fr.objects.generated.ts b/packages/platform-objects/src/apps/translations/fr.objects.generated.ts index 7b15416d3b3..9e4634c181e 100644 --- a/packages/platform-objects/src/apps/translations/fr.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/fr.objects.generated.ts @@ -218,6 +218,54 @@ export const frObjects: NonNullable = { } } }, + add_sso_user: { + label: "Ajouter un utilisateur", + description: "Ajoutez une personne par son adresse e-mail avant sa première connexion. Elle se connecte via le fournisseur d'identité de votre organisation ; aucun mot de passe n'est défini ici.", + params: { + positions: { + label: "Poste", + helpText: "Facultatif. Le poste que cette personne occupe dès son ajout." + }, + permissionSets: { + label: "Ensemble d'autorisations", + helpText: "Facultatif. Accorde cet ensemble d'autorisations à la personne, pour qu'elle puisse ouvrir ses applications dès sa première connexion." + }, + manager: { + label: "E-mail du responsable", + helpText: "Facultatif. L'adresse e-mail du responsable de cette personne, un utilisateur de cet environnement." + } + }, + resultDialog: { + title: "Utilisateur ajouté", + acknowledge: "Terminé", + fields: { + email: "E-mail", + notApplied: "Déjà en attente, donc non appliqué (à définir sur l'enregistrement)", + managerError: "Responsable", + "host.reason": "Invitation non envoyée" + } + } + }, + import_sso_users: { + label: "Importer des utilisateurs", + description: "Ajoutez plusieurs personnes à la fois à partir d'un texte CSV. Chaque ligne est ajoutée séparément : une ligne erronée échoue seule. Elles se connectent via le fournisseur d'identité de votre organisation ; aucun mot de passe n'est défini ici.", + params: { + csv: { + label: "CSV", + helpText: "Une ligne d'en-tête, puis une personne par ligne, 500 au maximum. Colonnes : email, name, positions et permission_sets (noms machine séparés par ;) et manager_id (l'adresse e-mail du responsable)." + } + }, + resultDialog: { + title: "Importation terminée", + acknowledge: "Terminé", + fields: { + "summary.added": "Ajoutés", + "summary.alreadyPending": "Déjà en attente, prévenus à nouveau", + "summary.failed": "Non ajoutés", + rows: "Résultat par ligne" + } + } + }, set_user_password: { label: "Définir le mot de passe", successMessage: "Mot de passe mis à jour", diff --git a/packages/platform-objects/src/apps/translations/fr.source-hashes.generated.ts b/packages/platform-objects/src/apps/translations/fr.source-hashes.generated.ts index ad1a675472e..958572fd395 100644 --- a/packages/platform-objects/src/apps/translations/fr.source-hashes.generated.ts +++ b/packages/platform-objects/src/apps/translations/fr.source-hashes.generated.ts @@ -251,5 +251,6 @@ export const frGeneratedSourceHashes: Readonly> = { "objects.sys_sso_provider.fields.sign_out_of_idp.help": "ab8ff5fce3001c81", "objects.sys_sso_provider.fields.sign_out_of_idp.label": "212587b8191bb91b", "objects.sys_two_factor.fields.secret.label": "03cb32e33fa5cc45", + "objects.sys_user._actions.import_sso_users.params.csv.label": "bfb77802b66a9222", "objects.sys_user.fields.source.options.idp_pending": "3751093c5b65b072", }; diff --git a/packages/platform-objects/src/apps/translations/ja-JP.objects.generated.ts b/packages/platform-objects/src/apps/translations/ja-JP.objects.generated.ts index 74714ddecb0..af322a83b10 100644 --- a/packages/platform-objects/src/apps/translations/ja-JP.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/ja-JP.objects.generated.ts @@ -218,6 +218,54 @@ export const jaJPObjects: NonNullable = { } } }, + add_sso_user: { + label: "ユーザーを追加", + description: "初回サインインの前に、メールアドレスで追加します。追加された人は組織の ID プロバイダー経由でサインインします。ここではパスワードを設定しません。", + params: { + positions: { + label: "役職", + helpText: "任意。追加された時点からこの人が就く役職です。" + }, + permissionSets: { + label: "権限セット", + helpText: "任意。この権限セットを付与し、初回サインイン時からアプリを開けるようにします。" + }, + manager: { + label: "上司のメールアドレス", + helpText: "任意。この人の上司のメールアドレス(この環境のユーザー)。" + } + }, + resultDialog: { + title: "ユーザーを追加しました", + acknowledge: "完了", + fields: { + email: "メールアドレス", + notApplied: "保留中のため適用されませんでした(レコードで設定してください)", + managerError: "上司", + "host.reason": "招待は送信されませんでした" + } + } + }, + import_sso_users: { + label: "ユーザーをインポート", + description: "CSV テキストから複数の人をまとめて追加します。各行は個別に追加されるため、不正な行だけが失敗します。追加された人は組織の ID プロバイダー経由でサインインします。ここではパスワードを設定しません。", + params: { + csv: { + label: "CSV", + helpText: "1 行目はヘッダー行、その後は 1 行に 1 人、最大 500 行。列:email、name、positions と permission_sets(; 区切りのマシン名)、manager_id(上司のメールアドレス)。" + } + }, + resultDialog: { + title: "インポートが完了しました", + acknowledge: "完了", + fields: { + "summary.added": "追加済み", + "summary.alreadyPending": "保留中のため再通知", + "summary.failed": "未追加", + rows: "行ごとの結果" + } + } + }, set_user_password: { label: "パスワードを設定", successMessage: "パスワードを更新しました", diff --git a/packages/platform-objects/src/apps/translations/ja-JP.source-hashes.generated.ts b/packages/platform-objects/src/apps/translations/ja-JP.source-hashes.generated.ts index 5517b0af108..c539c773da5 100644 --- a/packages/platform-objects/src/apps/translations/ja-JP.source-hashes.generated.ts +++ b/packages/platform-objects/src/apps/translations/ja-JP.source-hashes.generated.ts @@ -149,5 +149,6 @@ export const jaJPGeneratedSourceHashes: Readonly> = { "objects.sys_sso_provider.fields.id.label": "00b0385c9c152888", "objects.sys_sso_provider.fields.sign_out_of_idp.help": "ab8ff5fce3001c81", "objects.sys_sso_provider.fields.sign_out_of_idp.label": "212587b8191bb91b", + "objects.sys_user._actions.import_sso_users.params.csv.label": "bfb77802b66a9222", "objects.sys_user.fields.source.options.idp_pending": "3751093c5b65b072", }; diff --git a/packages/platform-objects/src/apps/translations/ko.objects.generated.ts b/packages/platform-objects/src/apps/translations/ko.objects.generated.ts index 97f2dac4eca..b2138fb29cd 100644 --- a/packages/platform-objects/src/apps/translations/ko.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/ko.objects.generated.ts @@ -218,6 +218,54 @@ export const koObjects: NonNullable = { } } }, + add_sso_user: { + label: "사용자 추가", + description: "첫 로그인 전에 이메일 주소로 사람을 추가합니다. 추가된 사람은 조직의 ID 공급자를 통해 로그인하며, 여기서는 비밀번호를 설정하지 않습니다.", + params: { + positions: { + label: "직위", + helpText: "선택 사항. 추가된 시점부터 이 사람이 맡는 직위입니다." + }, + permissionSets: { + label: "권한 세트", + helpText: "선택 사항. 이 권한 세트를 부여하여 첫 로그인부터 앱을 열 수 있게 합니다." + }, + manager: { + label: "관리자 이메일", + helpText: "선택 사항. 이 사람의 관리자 이메일 주소로, 이 환경의 사용자여야 합니다." + } + }, + resultDialog: { + title: "사용자 추가됨", + acknowledge: "완료", + fields: { + email: "이메일", + notApplied: "이미 대기 중이어서 적용되지 않음(레코드에서 설정하세요)", + managerError: "관리자", + "host.reason": "초대가 전송되지 않음" + } + } + }, + import_sso_users: { + label: "사용자 가져오기", + description: "CSV 텍스트에서 여러 사람을 한 번에 추가합니다. 각 행은 따로 추가되므로 잘못된 행만 실패합니다. 추가된 사람은 조직의 ID 공급자를 통해 로그인하며, 여기서는 비밀번호를 설정하지 않습니다.", + params: { + csv: { + label: "CSV", + helpText: "첫 행은 머리글이고 이후 한 줄에 한 명씩, 최대 500행입니다. 열: email, name, positions 및 permission_sets(; 로 구분한 머신 이름), manager_id(관리자의 이메일 주소)." + } + }, + resultDialog: { + title: "가져오기 완료", + acknowledge: "완료", + fields: { + "summary.added": "추가됨", + "summary.alreadyPending": "이미 대기 중, 다시 알림", + "summary.failed": "추가되지 않음", + rows: "행별 결과" + } + } + }, set_user_password: { label: "비밀번호 설정", successMessage: "비밀번호 업데이트됨", diff --git a/packages/platform-objects/src/apps/translations/ko.source-hashes.generated.ts b/packages/platform-objects/src/apps/translations/ko.source-hashes.generated.ts index b2254c8965f..f4542414298 100644 --- a/packages/platform-objects/src/apps/translations/ko.source-hashes.generated.ts +++ b/packages/platform-objects/src/apps/translations/ko.source-hashes.generated.ts @@ -114,5 +114,6 @@ export const koGeneratedSourceHashes: Readonly> = { "objects.sys_sso_provider.fields.id.label": "00b0385c9c152888", "objects.sys_sso_provider.fields.sign_out_of_idp.help": "ab8ff5fce3001c81", "objects.sys_sso_provider.fields.sign_out_of_idp.label": "212587b8191bb91b", + "objects.sys_user._actions.import_sso_users.params.csv.label": "bfb77802b66a9222", "objects.sys_user.fields.source.options.idp_pending": "3751093c5b65b072", }; diff --git a/packages/platform-objects/src/apps/translations/pt-BR.objects.generated.ts b/packages/platform-objects/src/apps/translations/pt-BR.objects.generated.ts index 3bc6b629511..8c3f54b77b0 100644 --- a/packages/platform-objects/src/apps/translations/pt-BR.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/pt-BR.objects.generated.ts @@ -218,6 +218,54 @@ export const ptBRObjects: NonNullable = { } } }, + add_sso_user: { + label: "Adicionar usuário", + description: "Adicione alguém pelo endereço de e-mail antes do primeiro login. A pessoa entra pelo provedor de identidade da sua organização; nenhuma senha é definida aqui.", + params: { + positions: { + label: "Cargo", + helpText: "Opcional. O cargo que esta pessoa ocupa desde o momento em que é adicionada." + }, + permissionSets: { + label: "Conjunto de permissões", + helpText: "Opcional. Concede este conjunto de permissões à pessoa, para que ela possa abrir seus aplicativos no primeiro login." + }, + manager: { + label: "E-mail do gestor", + helpText: "Opcional. O endereço de e-mail do gestor desta pessoa, um usuário deste ambiente." + } + }, + resultDialog: { + title: "Usuário adicionado", + acknowledge: "Concluído", + fields: { + email: "E-mail", + notApplied: "Já pendente, então não aplicado (defina no registro)", + managerError: "Gestor", + "host.reason": "Convite não enviado" + } + } + }, + import_sso_users: { + label: "Importar usuários", + description: "Adicione várias pessoas de uma vez a partir de texto CSV. Cada linha é adicionada separadamente, então uma linha com erro falha sozinha. Elas entram pelo provedor de identidade da sua organização; nenhuma senha é definida aqui.", + params: { + csv: { + label: "CSV", + helpText: "Uma linha de cabeçalho e depois uma pessoa por linha, no máximo 500. Colunas: email, name, positions e permission_sets (nomes de máquina separados por ;) e manager_id (o endereço de e-mail do gestor)." + } + }, + resultDialog: { + title: "Importação concluída", + acknowledge: "Concluído", + fields: { + "summary.added": "Adicionados", + "summary.alreadyPending": "Já pendentes, avisados novamente", + "summary.failed": "Não adicionados", + rows: "Resultado por linha" + } + } + }, set_user_password: { label: "Definir senha", successMessage: "Senha atualizada", diff --git a/packages/platform-objects/src/apps/translations/pt-BR.source-hashes.generated.ts b/packages/platform-objects/src/apps/translations/pt-BR.source-hashes.generated.ts index f421b878d77..dc8b3f44160 100644 --- a/packages/platform-objects/src/apps/translations/pt-BR.source-hashes.generated.ts +++ b/packages/platform-objects/src/apps/translations/pt-BR.source-hashes.generated.ts @@ -157,5 +157,6 @@ export const ptBRGeneratedSourceHashes: Readonly> = { "objects.sys_sso_provider.fields.id.label": "00b0385c9c152888", "objects.sys_sso_provider.fields.sign_out_of_idp.help": "ab8ff5fce3001c81", "objects.sys_sso_provider.fields.sign_out_of_idp.label": "212587b8191bb91b", + "objects.sys_user._actions.import_sso_users.params.csv.label": "bfb77802b66a9222", "objects.sys_user.fields.source.options.idp_pending": "3751093c5b65b072", }; diff --git a/packages/platform-objects/src/apps/translations/ru.objects.generated.ts b/packages/platform-objects/src/apps/translations/ru.objects.generated.ts index a2889ca8845..b4e29511369 100644 --- a/packages/platform-objects/src/apps/translations/ru.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/ru.objects.generated.ts @@ -218,6 +218,54 @@ export const ruObjects: NonNullable = { } } }, + add_sso_user: { + label: "Добавить пользователя", + description: "Добавьте человека по адресу электронной почты до его первого входа. Он входит через поставщика удостоверений вашей организации; пароль здесь не задаётся.", + params: { + positions: { + label: "Должность", + helpText: "Необязательно. Должность, которую этот человек занимает с момента добавления." + }, + permissionSets: { + label: "Набор разрешений", + helpText: "Необязательно. Выдаёт человеку этот набор разрешений, чтобы он мог открыть свои приложения при первом входе." + }, + manager: { + label: "Почта руководителя", + helpText: "Необязательно. Адрес электронной почты руководителя этого человека — пользователя этой среды." + } + }, + resultDialog: { + title: "Пользователь добавлен", + acknowledge: "Готово", + fields: { + email: "Электронная почта", + notApplied: "Уже ожидает входа, поэтому не применено (задайте в записи)", + managerError: "Руководитель", + "host.reason": "Приглашение не отправлено" + } + } + }, + import_sso_users: { + label: "Импортировать пользователей", + description: "Добавьте сразу несколько человек из текста CSV. Каждая строка добавляется отдельно, поэтому ошибочная строка не влияет на остальные. Они входят через поставщика удостоверений вашей организации; пароль здесь не задаётся.", + params: { + csv: { + label: "CSV", + helpText: "Строка заголовка, затем по одному человеку в строке, не более 500. Столбцы: email, name, positions и permission_sets (машинные имена через ;) и manager_id (адрес электронной почты руководителя)." + } + }, + resultDialog: { + title: "Импорт завершён", + acknowledge: "Готово", + fields: { + "summary.added": "Добавлено", + "summary.alreadyPending": "Уже ожидают, уведомлены повторно", + "summary.failed": "Не добавлено", + rows: "Результат по строкам" + } + } + }, set_user_password: { label: "Задать пароль", successMessage: "Пароль обновлён", diff --git a/packages/platform-objects/src/apps/translations/ru.source-hashes.generated.ts b/packages/platform-objects/src/apps/translations/ru.source-hashes.generated.ts index 01fb03eae43..803c7a5c745 100644 --- a/packages/platform-objects/src/apps/translations/ru.source-hashes.generated.ts +++ b/packages/platform-objects/src/apps/translations/ru.source-hashes.generated.ts @@ -113,5 +113,6 @@ export const ruGeneratedSourceHashes: Readonly> = { "objects.sys_sso_provider.fields.id.label": "00b0385c9c152888", "objects.sys_sso_provider.fields.sign_out_of_idp.help": "ab8ff5fce3001c81", "objects.sys_sso_provider.fields.sign_out_of_idp.label": "212587b8191bb91b", + "objects.sys_user._actions.import_sso_users.params.csv.label": "bfb77802b66a9222", "objects.sys_user.fields.source.options.idp_pending": "3751093c5b65b072", }; diff --git a/packages/platform-objects/src/apps/translations/zh-CN.objects.generated.ts b/packages/platform-objects/src/apps/translations/zh-CN.objects.generated.ts index 808fc51e05e..ebcdeac4e80 100644 --- a/packages/platform-objects/src/apps/translations/zh-CN.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/zh-CN.objects.generated.ts @@ -218,6 +218,54 @@ export const zhCNObjects: NonNullable = { } } }, + add_sso_user: { + label: "添加用户", + description: "在对方首次登录前按邮箱地址添加。对方通过你所在组织的身份提供方登录;这里不设置密码。", + params: { + positions: { + label: "岗位", + helpText: "可选。此人从被添加起就担任的岗位。" + }, + permissionSets: { + label: "权限集", + helpText: "可选。把此权限集授予此人,使其首次登录即可打开自己的应用。" + }, + manager: { + label: "上级邮箱", + helpText: "可选。此人上级的邮箱地址,须是本环境中的用户。" + } + }, + resultDialog: { + title: "用户已添加", + acknowledge: "完成", + fields: { + email: "邮箱", + notApplied: "此人仍待激活,以下内容未生效(请在其记录上设置)", + managerError: "上级", + "host.reason": "邀请未发出" + } + } + }, + import_sso_users: { + label: "导入用户", + description: "从 CSV 文本一次添加多人。每一行单独添加,某一行出错只影响该行。他们通过你所在组织的身份提供方登录;这里不设置密码。", + params: { + csv: { + label: "CSV", + helpText: "第一行为表头,之后每行一人,最多 500 行。列:email、name、positions 和 permission_sets(机器名,用 ; 分隔)以及 manager_id(上级的邮箱地址)。" + } + }, + resultDialog: { + title: "导入完成", + acknowledge: "完成", + fields: { + "summary.added": "已添加", + "summary.alreadyPending": "已在待激活中,已再次通知", + "summary.failed": "未添加", + rows: "逐行结果" + } + } + }, set_user_password: { label: "设置密码", successMessage: "密码已更新", diff --git a/packages/platform-objects/src/apps/translations/zh-CN.source-hashes.generated.ts b/packages/platform-objects/src/apps/translations/zh-CN.source-hashes.generated.ts index 912ad71f677..5fc27e139ad 100644 --- a/packages/platform-objects/src/apps/translations/zh-CN.source-hashes.generated.ts +++ b/packages/platform-objects/src/apps/translations/zh-CN.source-hashes.generated.ts @@ -89,5 +89,6 @@ export const zhCNGeneratedSourceHashes: Readonly> = { "objects.sys_sso_provider.fields.id.label": "00b0385c9c152888", "objects.sys_sso_provider.fields.sign_out_of_idp.help": "ab8ff5fce3001c81", "objects.sys_sso_provider.fields.sign_out_of_idp.label": "212587b8191bb91b", + "objects.sys_user._actions.import_sso_users.params.csv.label": "bfb77802b66a9222", "objects.sys_user.fields.source.options.idp_pending": "3751093c5b65b072", }; diff --git a/packages/platform-objects/src/apps/translations/zh-Hant.objects.generated.ts b/packages/platform-objects/src/apps/translations/zh-Hant.objects.generated.ts index 0d1b30185d5..e9e210eb5f2 100644 --- a/packages/platform-objects/src/apps/translations/zh-Hant.objects.generated.ts +++ b/packages/platform-objects/src/apps/translations/zh-Hant.objects.generated.ts @@ -218,6 +218,54 @@ export const zhHantObjects: NonNullable = { } } }, + add_sso_user: { + label: "新增使用者", + description: "在對方首次登入前依電子郵件地址新增。對方透過你所屬組織的身分識別提供者登入;這裡不設定密碼。", + params: { + positions: { + label: "職位", + helpText: "選填。此人從被新增起即擔任的職位。" + }, + permissionSets: { + label: "權限集", + helpText: "選填。將此權限集授予此人,讓對方首次登入即可開啟自己的應用程式。" + }, + manager: { + label: "主管電子郵件", + helpText: "選填。此人主管的電子郵件地址,須為本環境中的使用者。" + } + }, + resultDialog: { + title: "已新增使用者", + acknowledge: "完成", + fields: { + email: "電子郵件", + notApplied: "此人仍待啟用,以下內容未套用(請在其記錄上設定)", + managerError: "主管", + "host.reason": "邀請未送出" + } + } + }, + import_sso_users: { + label: "匯入使用者", + description: "從 CSV 文字一次新增多人。每一列各自新增,某一列出錯只影響該列。他們透過你所屬組織的身分識別提供者登入;這裡不設定密碼。", + params: { + csv: { + label: "CSV", + helpText: "第一列為標題列,之後每列一人,最多 500 列。欄位:email、name、positions 與 permission_sets(機器名稱,以 ; 分隔)以及 manager_id(主管的電子郵件地址)。" + } + }, + resultDialog: { + title: "匯入完成", + acknowledge: "完成", + fields: { + "summary.added": "已新增", + "summary.alreadyPending": "已在待啟用中,已再次通知", + "summary.failed": "未新增", + rows: "逐列結果" + } + } + }, set_user_password: { label: "設定密碼", successMessage: "密碼已更新", diff --git a/packages/platform-objects/src/apps/translations/zh-Hant.source-hashes.generated.ts b/packages/platform-objects/src/apps/translations/zh-Hant.source-hashes.generated.ts index b7e4d2e51f3..e9a90d643c2 100644 --- a/packages/platform-objects/src/apps/translations/zh-Hant.source-hashes.generated.ts +++ b/packages/platform-objects/src/apps/translations/zh-Hant.source-hashes.generated.ts @@ -107,5 +107,6 @@ export const zhHantGeneratedSourceHashes: Readonly> = { "objects.sys_sso_provider.fields.id.label": "00b0385c9c152888", "objects.sys_sso_provider.fields.sign_out_of_idp.help": "ab8ff5fce3001c81", "objects.sys_sso_provider.fields.sign_out_of_idp.label": "212587b8191bb91b", + "objects.sys_user._actions.import_sso_users.params.csv.label": "bfb77802b66a9222", "objects.sys_user.fields.source.options.idp_pending": "3751093c5b65b072", }; From 5e23ce4caec6187914a7c395ddf48de9198486b2 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 08:39:17 +0000 Subject: [PATCH 3/5] test(platform-objects): the feature-gate guard reads the two inputs cloudManaged shows while on Claude-Session: https://claude.ai/code/session_01FEkQ5o1t4Dbyp8n9chrc65 Co-Authored-By: Claude --- .../src/feature-gate-guard.test.ts | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/packages/platform-objects/src/feature-gate-guard.test.ts b/packages/platform-objects/src/feature-gate-guard.test.ts index c47372926a6..2a8473bffa3 100644 --- a/packages/platform-objects/src/feature-gate-guard.test.ts +++ b/packages/platform-objects/src/feature-gate-guard.test.ts @@ -170,6 +170,26 @@ function resolveGatedInput(path: string): { visibleSource: string | undefined } return { visibleSource: param!.visible?.source }; } +/** + * Inputs a `hide-when-on` flag SHOWS while it is on — the one polarity the + * registry does not model. `PUBLIC_AUTH_FEATURES` books each flag's inputs + * under ONE predicate (`featureGatePredicate`, `features.cloudManaged != true` + * for this flag), and the forward rows hold every booked input to it, so an + * input gated the other way cannot be booked there. These are: Setup → Users' + * managed counterparts of `create_user` and the invitation mirrors, whose + * doors (`admin/add-sso-user`, `admin/import-sso-users`) answer only on a + * cloud-managed environment. Each must carry the flag's INVERSE as `&&` + * conjuncts — `has(features.F)` (so a console holding no flag hides it rather + * than faulting, and a faulting action predicate SHOWS) and + * `features.F == true` — and its verdicts are pinned in + * `identity/cloud-managed-visibility.test.ts`. Kept here, beside the reverse + * walk that reads it, rather than as a registry member no runtime reads. + */ +const SHOWN_WHEN_ON: ReadonlyArray<[string, PublicAuthFeatureName]> = [ + ['sys_user.actions.add_sso_user', 'cloudManaged'], + ['sys_user.actions.import_sso_users', 'cloudManaged'], +]; + describe('feature-gate completeness guard (#2874)', () => { it('sanity: the walker actually sees the platform objects', () => { for (const name of ['sys_user', 'sys_organization', 'sys_oauth_application', 'sys_two_factor']) { @@ -254,7 +274,20 @@ describe('feature-gate completeness guard (#2874)', () => { it.each(referencedInputs)('%s references registered flag %s and is booked', (path, flag) => { const booked = inputsByFlag.get(flag); expect(booked, `features.${flag} is a registry flag`).toBeDefined(); - expect(booked!.has(path), `${path} is booked in ${flag}.gatedInputs`).toBe(true); + const shown = SHOWN_WHEN_ON.some(([p, f]) => p === path && f === flag); + expect(booked!.has(path) || shown, `${path} is booked in ${flag}.gatedInputs (or in SHOWN_WHEN_ON)`).toBe(true); + }); + }); + + describe('the inputs a hide-when-on flag shows while on (SHOWN_WHEN_ON)', () => { + it.each(SHOWN_WHEN_ON)('%s carries the inverse of %s as && conjuncts', (path, flag) => { + expect(PUBLIC_AUTH_FEATURES[flag].semantics, `${flag} is hide-when-on, or the input belongs in gatedInputs`).toBe('hide-when-on'); + expect(PUBLIC_AUTH_FEATURES[flag].gatedInputs ?? [], `${path} is not also booked the other way`).not.toContain(path); + const { visibleSource } = resolveGatedInput(path); + expect(visibleSource, `${path} has a visible predicate`).toBeDefined(); + for (const term of [`has(features.${flag})`, `features.${flag} == true`]) { + expect(carriesGateConjunct(visibleSource!, term), `${path}: "${visibleSource}" must carry "${term}"`).toBe(true); + } }); }); }); From e6eb15eb8703925b2c301f034d92506e0ce91826 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 08:51:58 +0000 Subject: [PATCH 4/5] test(platform-objects): read the booked inputs through a typed view in the feature-gate guard Claude-Session: https://claude.ai/code/session_01FEkQ5o1t4Dbyp8n9chrc65 Co-Authored-By: Claude --- packages/platform-objects/src/feature-gate-guard.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/platform-objects/src/feature-gate-guard.test.ts b/packages/platform-objects/src/feature-gate-guard.test.ts index 2a8473bffa3..49ce7e50945 100644 --- a/packages/platform-objects/src/feature-gate-guard.test.ts +++ b/packages/platform-objects/src/feature-gate-guard.test.ts @@ -282,7 +282,8 @@ describe('feature-gate completeness guard (#2874)', () => { describe('the inputs a hide-when-on flag shows while on (SHOWN_WHEN_ON)', () => { it.each(SHOWN_WHEN_ON)('%s carries the inverse of %s as && conjuncts', (path, flag) => { expect(PUBLIC_AUTH_FEATURES[flag].semantics, `${flag} is hide-when-on, or the input belongs in gatedInputs`).toBe('hide-when-on'); - expect(PUBLIC_AUTH_FEATURES[flag].gatedInputs ?? [], `${path} is not also booked the other way`).not.toContain(path); + const booked = (PUBLIC_AUTH_FEATURES[flag] as { gatedInputs?: readonly string[] }).gatedInputs ?? []; + expect(booked, `${path} is not also booked the other way`).not.toContain(path); const { visibleSource } = resolveGatedInput(path); expect(visibleSource, `${path} has a visible predicate`).toBeDefined(); for (const term of [`has(features.${flag})`, `features.${flag} == true`]) { From 5f0e9b5f73df47f63416f08094fb06b8a8372aeb Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 09:28:36 +0000 Subject: [PATCH 5/5] style(platform-objects): restore the spacing on the temporary password label constant Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01FEkQ5o1t4Dbyp8n9chrc65 --- packages/platform-objects/src/identity/sys-user.object.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/platform-objects/src/identity/sys-user.object.ts b/packages/platform-objects/src/identity/sys-user.object.ts index cde955fa973..b7734b97cc1 100644 --- a/packages/platform-objects/src/identity/sys-user.object.ts +++ b/packages/platform-objects/src/identity/sys-user.object.ts @@ -73,7 +73,7 @@ const SERVICE_ACCOUNT_ADMIN_VISIBLE = [ const MANAGED_ADD_PERSON_VISIBLE = 'current_user.isPlatformAdmin == true && has(features.cloudManaged) && features.cloudManaged == true'; -const TEMPORARY_PASSWORD_LABEL ='Temporary password: copy it now, it is shown only once and never stored'; +const TEMPORARY_PASSWORD_LABEL = 'Temporary password: copy it now, it is shown only once and never stored'; /** * sys_user — System User Object