ci / shared (pull_request) Skipped
On-prem every account comes from the customer's AD through Keycloak's federation, so an AD admin answered email_taken and invitations asked for a new password. The Keycloak adapter gets a directory mode (DirectoryUsers, on with APP_ENV=onprem): - The first admin and invited members are existing directory users, attached to the organization with their role. No local user is created, no execute-actions mail is sent (invite status "added", audit user.added / keycloak.admin_added). - An unknown address (or one outside the admitted AD groups) answers 404 not_in_directory. For the workspace's admin it is checked before the workspace is created, and the adapter looks the user up before creating the organization, so nothing is left behind. - Resend answers 409 no_invite_mail; directory members are never pending. - Member lists read the roles from the user when Keycloak lists a federated member with its LDAP attributes only (seen with Keycloak 26.8). - The admin address is normalized once for lookup, store and Keycloak. Checked against Keycloak 26.8.1 with a Samba AD (the test install in platform/onprem, realm with UNSYNCED federation and realm-policy.sh). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>