Skip to content
Merged
12 changes: 12 additions & 0 deletions .changeset/33186-managed-add-people-actions.md
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,54 @@ export const arObjects: NonNullable<TranslationData['objects']> = {
}
}
},
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: "تم تحديث كلمة المرور",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@ export const arGeneratedSourceHashes: Readonly<Record<string, string>> = {
"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",
};
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,54 @@ export const deObjects: NonNullable<TranslationData['objects']> = {
}
}
},
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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ export const deGeneratedSourceHashes: Readonly<Record<string, string>> = {
"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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,54 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
}
}
},
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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,54 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
}
}
},
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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,6 @@ export const esESGeneratedSourceHashes: Readonly<Record<string, string>> = {
"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",
};
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,54 @@ export const frObjects: NonNullable<TranslationData['objects']> = {
}
}
},
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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,6 @@ export const frGeneratedSourceHashes: Readonly<Record<string, string>> = {
"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",
};
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,54 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
}
}
},
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: "パスワードを更新しました",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,6 @@ export const jaJPGeneratedSourceHashes: Readonly<Record<string, string>> = {
"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",
};
Loading
Loading