# Feature OP-14117 - OpenID Connect group sync via group claims

Project: OpenProject
Status: in specification
URL: https://community.openproject.org/work_packages/OP-14117

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 5 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** an OpenProject admin  
**I want** users' groups to be synchronized on login  
**so that** I can control their group memberships in my identity provider, especially when self-registering is desirable.

<br>

**Acceptance criteria**

  - allow requesting group claims (cf. [OpenID Connect claims in OpenProject](https://www.openproject.org/docs/installation-and-operations/misc/custom-openid-connect-providers/#claims), [configuring group claims in okta](https://developer.okta.com/docs/guides/customize-tokens-groups-claim/main/#request-a-token-that-contains-the-custom-claim))

  - evaluate group claims on login
    
      - synchronize groups between OpenProject and IdP (identity provider) in some way (e.g. simple name-based matching)
    
      - assign user to groups passed in groups claim
    
      - remember connection between user and group (same as for LDAP), so it can be marked in the UI and deletion can be prevented
    
      - note: in the case of MS Entra ID (formerly Azure AD) the number of groups in the group claim [is apparently limited to 150](https://docs.gitlab.com/ee/user/group/saml_sso/group_sync.html#microsoft-azure-active-directory-integration))
