Syncing OpenProject groups from OpenID Connect claims

Learn how OpenProject reads group claims from your OpenID Connect provider, what the Synchronize groups option changes at login, and how to plan filters and manual memberships before enabling it.

On this page

How OpenProject group sync from OIDC claims works

If your organization already manages groups in an identity provider and wants OpenProject memberships to follow them, the supported method is the Synchronize groups option on an OpenID Connect provider. With this option enabled, OpenProject reads the groups claim from the login response, creates any group it does not yet know, and matches existing groups by name. Group membership then comes from the provider at each sign-in rather than from manual edits inside OpenProject.

The provider becomes fully responsible for memberships. Any assignment the provider does not declare in the groups claim is removed at login, so a manual membership added in the OpenProject administration screen can disappear the next time the user signs in. Before you enable the option, decide which groups must stay under local control, move them into the provider, and confirm with the provider team that the claim carries every group that should grant access. Check the Enterprise plan requirement for this setting against the current pricing page before you plan the rollout, since it is not confirmed in the facts supplied for this section.

Two behaviors need planning. Group names can be filtered or renamed with Ruby regular expressions, which helps when the provider emits internal names that should not reach OpenProject. Also, OpenProject does not revalidate sessions after login, so removing a user or group at the provider does not end an existing OpenProject session at once. Decide whether that window is acceptable for your risk profile, and pair group removal with session termination or a short token lifetime if it is not. Test the filter and removal behavior with a pilot group using a non-production instance before you change production memberships.

What you need before enabling group sync from claims

Group sync from claims only works when OpenProject, the identity provider and your group plan agree on the same facts. The cards below cover the edition, the working OIDC connection, the groups claim, admin access, a test set and the list of groups the provider will own.

Confirm edition and release

The Synchronize groups option sits within OpenProject's OpenID provider configuration, which is part of the Enterprise feature set that includes single sign-on. Confirm on the current pricing page which Enterprise plan includes this setting, then check the release notes for the version you plan to run, since authentication options change between releases. Record the exact version number in your change request so the test and production instances match.

Pricing page

Working OIDC connection first

Group sync is an extension of a working sign-in, not a replacement for one. Before touching group settings, confirm that users can sign in through the provider, that their accounts map to the expected login, and that the redirect URI registered at the provider matches your OpenProject hostname exactly. Fix sign-in problems first, because group errors at login are much harder to trace when authentication itself is unstable.

A groups claim for every user

OpenProject reads the groups claim by default, so the provider must include that claim in the ID token or user info response for each user who signs in. Check the claim with a real token from a test user, not only the provider's configuration screen. Users with no group assignments should still produce a valid response, and you should confirm how the provider emits nested or multi-valued groups before writing any filter.

Admin access to authentication settings

Enabling the setting and editing the OpenID provider requires an administrator account that can change authentication configuration. Keep at least one separate break-glass administrator who can still sign in if the provider is misconfigured. Confirm who holds the client secret and where it is stored, because changing the provider configuration in production affects every user's sign-in and group memberships at their next login.

Test account set

Build a small set of test identities at the provider that cover the cases that will matter in production: a user in one managed group, a user in several, a user in none, a user who holds a manual membership in OpenProject, and a user whose group name would be renamed or filtered. Because memberships that the provider does not declare are removed at login, a test user is the safest way to see what a change does before it reaches real projects.

Written list of provider-owned groups

Write down which OpenProject groups the provider will own, which groups remain manual, and the owner of each list. Once Synchronize groups is enabled, the identity provider is fully responsible for memberships, so any group absent from the provider's claim will lose its members at login. Agree this list with project managers and the people who grant project roles, and note any group that needs a rename or regular expression filter before the first sync.

Configuring the Synchronize groups option step by step

This sequence turns OpenProject group membership over to the identity provider, so each sign-in creates the groups the provider declares and applies the memberships it sends. Each step ends with a check you can run before the change reaches production users.

  1. Confirm OpenID Connect sign-in works first

    Before touching group settings, have your identity administrator and your OpenProject administrator confirm that the OpenID Connect provider already signs users in. The provider should be registered, the redirect URI should match what OpenProject expects, and a test user should reach OpenProject after authenticating. Group synchronization runs during login, so a broken sign-in path will hide every group problem behind a login error. Done means a test user lands in OpenProject with an account that has the expected email and login name.

  2. Add the groups claim to the provider response

    In the identity provider, add a groups claim to the ID token or the userinfo response that OpenProject reads, and limit it to the groups OpenProject should manage. The identity administrator owns this step, and the exact configuration depends on the provider. Confirm the claim's name and format with the provider's documentation, since OpenProject needs to read the same claim name you set. Done means a decoded token or userinfo response for a test user shows a groups value containing the expected group names.

  3. Enable Synchronize groups in the provider settings

    In the OpenProject administration area, open the OpenID provider entry you already use for sign-in and turn on the Synchronize groups option. Once enabled, OpenProject reads the groups claim by default. Save the provider configuration and keep a copy of the previous settings so you can revert quickly. Done means the setting is saved and a saved configuration review shows it as active for this provider only.

  4. Set the groups claim name if needed

    Leave the default groups claim in place if your provider already sends it under that name. If your provider uses a different claim name or nests groups inside another object, enter the custom claim name in the same provider settings. Confirm the name against the token you captured in the earlier step, because a mismatch leaves synchronization running with no groups to read. Done means the claim name in OpenProject matches the claim name in the test token character for character.

  5. Turn on creation of unknown groups

    Enable the option that creates groups OpenProject does not yet have. OpenProject matches existing groups by name, so with this option off, only groups already created in OpenProject will receive memberships. Decide whether your team wants new groups created automatically, since every group the provider sends will then appear in OpenProject administration. Done means a test sign-in by a user who belongs to a group that does not yet exist in OpenProject creates that group.

  6. Test regular expression filters and renames on samples

    Add any filter or renaming rules as Ruby regular expressions in the provider's group settings. Filters decide which provider groups are considered, and renaming rules change how a provider group name appears in OpenProject. Test each expression against a list of sample group names taken from your directory, including edge cases such as nested names and names with unusual characters, using a Ruby regex tester or a short script. Done means every sample name maps to the result you expect, with no group accidentally dropped or merged.

  7. Verify memberships with a test user

    Sign in as a test user from each relevant group, then check the group membership in OpenProject administration. Confirm that the expected groups exist, that the user belongs to them, and that the user has left any group the provider no longer declares. Also note that OpenProject does not revalidate sessions after login, so test removal by signing out and back in, not only by changing the provider. Done means each test user's group memberships match the provider's declared groups after a fresh login.

Designing the groups claim and regular expression filters

The groups claim is the list of group names your identity provider includes in the token it sends to OpenProject at sign-in. With Synchronize groups enabled, OpenProject reads that claim by default, so the first design decision is which groups belong in it at all. Include only groups that represent something OpenProject should act on, such as a team, a project role or a department. Groups used for email distribution, licensing or unrelated applications add noise and can create OpenProject groups nobody needs.

  • Scope the claim in the provider: Configure the provider's group mapper or claim policy so that only the intended groups appear in the token.
  • Check nested groups: Confirm whether your provider flattens nested group membership into the claim, since this changes what OpenProject receives.
  • Keep names stable: Renaming a group at the provider changes the name OpenProject matches against, so treat group names as an interface.
  • Test with a small account set: Sign in with a few test users and review the groups OpenProject creates before widening the scope.
  • Document the claim contract: Record which groups are passed, who owns them and which OpenProject groups they feed.

Before going live, compare the groups claim in a real token from a test account with the groups you expected to see in OpenProject. Confirm the exact claim name and format with your identity provider's documentation.

Mapping provider groups to OpenProject memberships

This table traces one group value from the identity provider's groups claim to the OpenProject group it produces at login. Read each row as a case, then confirm the claim name and value format in your own provider before you enable synchronization. The main takeaway is that anything the provider does not declare is removed from OpenProject memberships at the next login.

CaseWhat OpenProject doesWhat the user sees after login
Groups claim present (default)Reads the groups claim from the ID token or user info response, unless you configure a different claim nameMemberships follow the groups the provider declares for that user
Unknown group valueCreates a new OpenProject group with the same name when none existsThe user joins the new group, and it appears in the administration area
Existing group with matching nameMatches the claim value to an existing group by name and adds the user to itAccess granted through that group's project roles applies at once
Group removed by a filterDrops values that do not match the configured Ruby regular expression before membership is setThe filtered value never becomes a group, so it grants no access
Group renamed by a ruleApplies the configured regular expression rewrite before matching or creating the groupThe user lands in the renamed group, so confirm the target name before rollout
Assignment not declared by providerRemoves the user from that OpenProject group at loginManual membership in a synchronized group is lost on the next sign-in
No groups claim sentTreats the provider as the source of truth and clears the user's synchronized membershipsConfirm the provider sends the claim for every user, or access may disappear unexpectedly

What happens to manual memberships at login

Once Synchronize groups is enabled, the identity provider becomes fully responsible for OpenProject group memberships. Any assignment the provider does not declare in the groups claim is removed at the next login. That includes memberships an administrator added by hand inside OpenProject, so a project that depended on a manually granted group can lose access without any change being made to the project itself. Treat the switch as a change of ownership, not as an additive feature.

Before enabling sync, export the current group memberships and sort them into two lists. The first holds memberships that belong to an organizational unit the provider already models, such as a department or project team, and these should be created as groups in the identity provider and emitted in the claim. The second holds exceptions, such as temporary contractors, external reviewers or local administrators, which either need a group in the provider or must be re-granted deliberately after login. Confirm with the provider team exactly which claim values will arrive for a sample of test accounts, and compare them with the list before any production user signs in.

Removals happen at login, not in real time. A user whose group is removed at the provider keeps the OpenProject memberships they had until that user next authenticates, and an existing session is not ended when the account is disabled, because OpenProject does not revalidate sessions after login. Plan the cutover so that offboarding and access reviews do not rely on group changes alone, and confirm with the provider and your own testing how quickly a disabled account loses access in your environment.

How a login updates OpenProject group memberships

The flow starts when a user signs in through the identity provider, which issues tokens that carry a groups claim. OpenProject reads that claim, applies any filter and rename rules, creates groups it has not seen before, and matches the rest to existing groups by name. Memberships the provider does not declare are removed at the same login, so check the claim contents and filter rules before enabling the option for all users.

Login sequence in which the provider's groups claim sets OpenProject memberships.

Security risks when the provider controls group access

Once the identity provider owns group memberships, every group name it sends becomes a access decision inside OpenProject. The cards below cover the risks that follow from that shift and the controls to set before turning synchronization on.

Broader project access than intended

A provider group can carry more project roles than its members were meant to hold, because OpenProject assigns whatever group-to-role mapping the administrator configured. A group named for a small team may be reused by another department in the provider. Before enabling synchronization, list every group the provider will send, the OpenProject projects and roles each one maps to, and confirm the owner of each group in the provider.

OpenID providers docs

Filters that admit unexpected groups

Regular expression filters decide which provider groups OpenProject creates and matches. A pattern written too loosely, such as one that matches any name containing a common word, can pull in groups from other applications or tenants. Test each pattern against the full list of groups in the provider, not only the groups you expect, and review the groups OpenProject creates after the first sign-in.

Admin rights tied to a group name

If a group grants administrator rights, anyone who can add a user to that group in the provider can become an OpenProject administrator at their next login. Group names are also easy to rename, so a rename can silently move rights to a different set of people. Keep administrator access out of synchronized groups where possible, and document which provider group, if any, is allowed to grant it.

Restricting who changes provider groups

Because the provider becomes fully responsible for memberships, its group administration becomes part of OpenProject's access control. Limit who holds the provider roles that can create, rename or add members to groups, require a review step for changes to groups that map to OpenProject roles, and keep an audit trail of those changes in the provider. Confirm these controls with the provider's own administration documentation.

Sessions that outlive removal

OpenProject does not revalidate sessions after login. Removing a user or a group membership at the provider takes effect on the next login, but an active OpenProject session can continue until it ends. For offboarding, plan explicit steps: disable the account at the provider, end the user's OpenProject sessions through an administrator action, and confirm the timing your own session policy requires. Ask your team to confirm how long sessions last in your deployment rather than assuming a value.

Common failures when syncing groups from claims

This table pairs each common failure with its likely cause, the fix and what to check in the provider or OpenProject logs. Read it when memberships are missing, wrong or disappearing after login, and start with the groups claim, since most other symptoms trace back to it.

FailureLikely causeFix and what to check
No groups appear after loginThe groups claim is missing from the ID or userinfo token, so OpenProject has nothing to readConfirm the identity provider includes the groups claim for this client and that the scope or claim mapping is enabled. Decode a test token and check the claim name matches the default OpenProject reads.
Groups do not get createdAutomatic group creation is off, so unknown group names are skippedEnable automatic group creation with Synchronize groups, then sign in again as a test user and confirm the group exists in the administration area.
Users land in an existing group with a similar nameNames do not match exactly, so OpenProject creates or fails to link the wrong groupCompare the claim value with the OpenProject group name character by character, including case and spaces. Use a regular expression rename rule to align names before relying on them.
Too many or too few groups are synchronizedA regular expression filter is broader or narrower than intended, or a rename rule drops part of a nameTest each filter against a sample of real claim values before enabling it. Review the groups that remain after login for one user from each team.
Manual memberships disappear after loginThe identity provider is treated as the full source of truth, so any assignment it does not declare is removed at loginMove every membership you want to keep into the provider's group list, or accept removal. Check whether a group was filtered out, since a filtered group is not declared and its membership is removed.
Removed user keeps working in OpenProjectOpenProject does not revalidate sessions after login, so an existing session stays active after the provider removes the userUntil the session ends, the user can continue. Confirm session lifetimes with your team, and disable the account in OpenProject if access must stop immediately.
Group changes not visible to the userMemberships update at login, so changes made in the provider after sign-in do not apply yetAsk the user to sign out and back in, then check the membership. Document this delay for administrators who expect instant changes.

Questions buyers ask before enabling OIDC group sync

What does it cost to set up OpenID Connect group sync in OpenProject?

No price is published for this work, and the cost is set by the written scope of the engagement. The main cost driver is the amount of identity provider configuration: deciding which claim carries groups, how the provider emits group names, and which groups should reach OpenProject at all. The second driver is group design, meaning how many groups exist, whether they need renaming or filtering with regular expressions, and how they map to project roles. The third is testing of memberships before the first production login. Ask any provider for a fixed-scope quote that lists each of these three parts separately, and ask whether ongoing changes to group rules are included or billed separately.

How long does enabling group sync take?

The duration depends on how many groups the identity provider will send, how clean the existing group structure is, and whether the provider configuration needs changes before it emits a usable groups claim. A small, well-named group set with a stable provider is a short exercise, while a large directory with inconsistent names needs filter design and several test logins. Ask for a timeline that breaks out provider changes, a staging test with real test accounts, and a cut-over date. No duration is stated here because none has been supplied for this work.

Can our own team enable OIDC group sync without a partner?

Yes, if the team has administrative access to both the identity provider and OpenProject and can test with non-production accounts. The work is configuration rather than code, but mistakes are easy to make: a wrong claim name or an overly broad filter can silently remove memberships at the next login. Internal teams usually need to confirm the exact option names and claim behavior against the current OpenProject OpenID providers documentation for their release. A partner adds value mainly when group design is complex or when the team lacks time to test before a planned switch.

What do we need from our identity and OpenProject administrators?

Each side has a distinct role. The identity administrator must confirm which groups the provider can emit in the groups claim, how group names are formatted, and which users belong to each group. The OpenProject administrator must confirm that Synchronize groups is enabled for the correct provider, decide whether unknown groups should be created automatically, and review any regular expression filters or renames. Both should agree in writing on which manual memberships will be removed at login, since the provider becomes fully responsible for memberships and undeclared assignments are removed.

Does OpenProject group sync require an Enterprise plan?

Confirm this on the OpenProject pricing page before you commit, because plan terms can change between releases. The pricing page lists single sign-on and LDAP group synchronization among the Enterprise features, and OpenID Connect single sign-on is part of that Enterprise offering. Check whether the specific Synchronize groups option sits under the same plan tier in your version, and confirm the minimum user count for the tier you need. Ask the vendor to state the plan in writing as part of the quote.

Does OIDC group sync replace LDAP group synchronization?

Not automatically. OIDC group sync takes group memberships from the claims the identity provider sends at login, while LDAP group synchronization reads groups from a directory on its own schedule. If your organization already drives groups from Active Directory through LDAP, decide which source owns memberships before enabling either one, because two sources writing to the same groups can produce conflicting results. Confirm with your OpenProject release notes and documentation how the two features interact in your version, and test a user who appears in both sources.

What happens to users already signed in when we remove them from a group?

Removing a user from a group at the provider takes effect the next time the membership is synchronized at login, but an existing OpenProject session is not ended at once. OpenProject does not revalidate sessions after login, so a removed user can keep working until the session expires or is ended by other means. Plan for this in your offboarding process by disabling the account at the provider and confirming how session lifetime is configured in your environment.

How DeployOpen scopes and delivers group sync

DeployOpen treats group sync from OpenID Connect claims as a written scope: which groups the provider owns, how they map to OpenProject, and what happens to existing memberships at first login. We build and test the configuration in your environment, then hand over documentation and the operating notes your administrators need.

How we scope

  • Inventory the groups your provider emits and decide which ones OpenProject should receive as memberships.
  • Agree in writing how groups are created, matched by name, filtered or renamed with regular expressions.
  • Record which existing manual memberships will be removed at login and get sign-off before any change.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • Configure the OpenID Connect provider in your OpenProject instance with the groups claim and synchronization enabled.
  • Test regular expression filters and renaming rules against real claim samples from a non-production tenant.
  • Verify login behavior for users with added, removed and unchanged group claims before going live.
  • Confirm Enterprise plan requirements for group synchronization against the current OpenProject pricing page.

How we hand over

  • Deliver the written configuration, filter rules and group mapping decisions with the reasons behind each one.
  • Document the session caveat: removing a user at the provider does not end an existing OpenProject session at once.
  • Provide a test script and rollback steps so your team can repeat the checks after future provider changes.
  • Walk your administrators through the runbook and record open questions for your own follow-up.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Re-test group sync when OpenProject releases a new version or when your provider's claim format changes.
  • Review filter rules when your organization adds groups, reorganizes teams or changes role ownership.
  • Ask any partner for a quote built from the written scope, including which parts recur and which are one-time.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.