Description
Summary
The pilot turned Sync IdP groups to teams off and still sees teams synchronized. The teams the sync had created are still there, and a group created in the IdP afterwards appeared as a team. The switch gates exactly one path: group-to-team sync at an SSO sign-in. Two other paths create teams from IdP groups without reading it: SCIM Group provisioning and the trusted-headers door. The Teams list gives teams from SSO sync and from SCIM the same Synced badge, so an admin cannot tell which door made a team. Whether the pilot has SCIM provisioning on was not captured; it is the explanation the code supports best.
The report
Obwohl die Funktion "IdP-Gruppen mit Teams synchronisieren" ausgeschaltet ist, werden bestehende Sync-Gruppen und neue Gruppen (z. B. eine neue Testgruppe) synchronisiert.
"Although 'Sync IdP groups to teams' is switched off, existing sync groups and new groups (e.g. a new test group) are synchronized." The group's name is left out here. It followed the pattern <prefix>.Tale.<role>-Test.
What the repository says (main at b2560c2d7)
The switch, and where it is read.
- Label and description: "Creates and updates teams from the IdP's group memberships at sign-in." (
services/platform/messages/en/settings.yml:635-636; Germanservices/platform/messages/de/settings.yml:654-655). The form maps it atservices/platform/app/features/settings/enterprise-sso/components/enterprise-sso-form.tsx:501and:519. - It is saved as
provisioning.autoProvisionTeamin the connection file (services/platform/backend/domains/sso/admin.ts:131-141) and read with the defaultfalse(services/platform/backend/domains/sso/config.ts:222-237). - At an SSO sign-in (OIDC and SAML share
handleSsoLogin; SAML atservices/platform/backend/core/enterprise_sso/saml/acs_handler.ts:177), groups are fetched only when the switch or a group role rule needs them (services/platform/backend/core/enterprise_sso/login/callback_handler.ts:350-364).syncTeamsFromGroupNamesruns onlyif (config.autoProvisionTeam && args.groups?.length)(services/platform/backend/domains/sso/service.ts:626-641).
Paths that do not read it.
- SCIM Groups. The SCIM door checks only that SCIM is enabled for the token (
services/platform/backend/domains/scim/routes.ts:81-84).POST /Groupscreates a team (services/platform/backend/core/scim/http_actions.ts:274-298, thenservices/platform/backend/domains/scim/service.ts:923-972), and PATCH and PUT change its members. NeitherautoProvisionTeamnor Exclude groups appears anywhere underdomains/scim/orcore/scim/. An IdP such as Entra pushes every group assigned to the enterprise application on each provisioning cycle, so a new group assigned there becomes a team without anyone signing in. - Trusted headers. A proxy's teams header is synced on every hand-off, with
excludeGroups: []and no switch (services/platform/backend/domains/sso/trusted-headers.ts:270-289).
Turning the switch off does nothing to existing teams. The save writes only the connection file. The provenance rows that mark teams the sync created (app.sso_synced_teams, migration 0071) stay; domains/sso/admin.ts never touches them. The Teams list computes synced from that provenance or a SCIM Group link (services/platform/backend/domains/teams/routes.ts:138-166). It shows Synced (settings.yml:342) and opens such a team read-only: "This team is provisioned by your identity provider, which owns its name and members. Change them there; a local edit would be undone by the next sync." (settings.yml:343-345; services/platform/app/features/settings/teams/components/team-edit-dialog.tsx:66-69, :307-324). With the switch off, no next sync runs. The teams keep the badge, stay read-only in Tale, and their members no longer follow the IdP. Delete still works.
Docs and spec.
docs/en/platform/admin/enterprise-sso.md:64describes the switch as "Creates or joins teams from group membership at sign-in". The SCIM section (:71-79) maps "Groups to teams" and does not say that the switch and the exclusions do not apply to it.- The SSO spec's team-sync rules, SSO-R6 to SSO-R9 (
services/platform/backend/domains/sso/spec.md:74-107), say nothing about the switch being off. No backend test callshandleSsoLoginwithautoProvisionTeam: falseand checks that no team appears.
Hypotheses, ranked by how well the code supports them
- SCIM provisioning is on and the IdP pushes its assigned groups. This explains the new groups and teams that change while nobody signs in. To settle it: Settings › Enterprise SSO › SCIM provisioning shows Enabled, and the audit log holds
scim_provision_groupentries (domains/scim/service.ts:951-958). - The teams seen are earlier sync results, still badged Synced and read-only after the switch went off. This explains the existing groups, not the new one.
- A trusted proxy sends a teams header. Applies only if the pilot uses the trusted-headers door.
- The switch did not save. The code read above does not support this. To settle it, read
provisioning.autoProvisionTeamin the organization's SSO connection file.
What was not examined
- The pilot's setup: SCIM on or off, the IdP, which groups are assigned, when the switch went off.
- A live Entra provisioning cycle.
Options (no preference stated)
- Say it. The switch's description, the SCIM card and the docs state that SCIM Groups always become teams and that the switch covers sign-in only, and the Teams list shows which door made each team.
- Make SCIM Group provisioning obey the switch and the exclusions, so one setting decides whether groups become teams through either door.
- A separate switch for SCIM Groups (users only, or users and groups).
- Decide what turning the switch off does to teams the sync made: keep them but make them editable (drop the provenance), keep them read-only, or offer to remove them.
Questions for the reporter
- Is SCIM provisioning enabled for the organization, and which groups are assigned to the enterprise application in the IdP?
- Did the new group appear without the test user signing in?
- Does the organization use the trusted-headers door?
Related
#4774 (SCIM group PATCH ignores operation order), #2116, #2085, #5044 (pilot findings).
Activity
yannickmonney commentedon Oct 30, 2026
The reporter's answers, 2026-10-30:
The timing is not needed to tell the doors apart, because the audit log names the door that created a team. Look under Settings › Governance › Logs for the team's creation (category
member, resource typeteam):scim_provision_groupscim(typeapi)services/platform/backend/domains/scim/service.ts:177-204,:951-958team.created, metadatadoor: ssosso(typesystem)services/platform/backend/domains/teams/audit.ts:26,:51-62;services/platform/backend/domains/sso/service.ts:368-374A
scim_provision_grouprow for the new team is the SCIM path described above. Ateam.createdrow byssodated after the switch went off would contradict the code read in this issue (hypotheses 3 and 4) and needs its own look.One more gap found while checking this, now tracked in #5142: the settings form saves through
PUT /config/oidcor/config/saml(services/platform/app/features/settings/enterprise-sso/components/enterprise-sso-form.tsx:529,:554). Thesso_configureaudit row those saves write records only{ protocol, providerId }or{ protocol: 'saml' }(services/platform/backend/domains/sso/admin.ts:252-255,:325-327). The provisioning-only route records{ provisioning: true }(:349-351). None records the switch's value or a previous state, so the log can show that the settings were saved but not when team sync was turned off. Only the connection file holds the current value.Edited 2026-10-30: the first version of this paragraph cited the provisioning-only route as the form's save path.
yannickmonney commentedon Nov 14, 2026
Decision
Rule: each door that turns IdP groups into teams is scoped where it is configured. Tale shows which door owns each team. Ending sign-in team sync hands its teams over to the admins.
Answers
Rationale
Changes here must not break user deprovisioning or widen who can see restricted items. That rules out refusing SCIM traffic and deleting teams. It also rules out attributing every existing record to SSO, which would stop the proxy from removing access it granted. Naming the door and stating each control's scope fixes the confusion, and releasing provenance ends the read-only-but-never-updated state. The release runs under the configuration's write lock, so a failed save releases nothing.
Implementation units (all on main)
door('sso', 'proxy' or 'legacy') to both provenance tables, with a backfill that keeps proxy-granted records prunable. Each door cleans up only its own and legacy records. SSO-R7 amended.team.sync_releasedaudit rows, sign-in re-check, spec rule, docs, manual test box. Depends on 2.Cross-issue amendments (decisions taken together with #5412):
doormigration and the units that release teams on switch-off or exclusions, because the switch and exclusions no longer exist. Removing the SSO connection deletes nothing and releases nothing, since links stay with their teams. (b) The Teams listsourcebecomes 'scim' | 'linked' | null. 'scim' comes from a SCIM Group link. 'linked' means at least one sso_group_link exists, from either the sign-in door or the trusted-header door. Members show the IdP-granted mark from app.sso_group_link_grants. (c) Keep only bug(platform): teams keep arriving from the identity provider while "Sync IdP groups to teams" is off #5138's docs unit, reworded: SCIM group scope is set in the IdP with no Tale switch, and sign-in and trusted headers follow admin-made group links. Amend Improvement: SSO team sync should not turn every identity-provider group of a person signing in into a team #5412: change 'its own switch is decided in bug(platform): teams keep arriving from the identity provider while "Sync IdP groups to teams" is off #5138' to 'SCIM has no Tale-side group switch (bug(platform): teams keep arriving from the identity provider while "Sync IdP groups to teams" is off #5138)'. Land Improvement: SSO team sync should not turn every identity-provider group of a person signing in into a team #5412 first, then bug(platform): teams keep arriving from the identity provider while "Sync IdP groups to teams" is off #5138's reduced scope.