Important Update Effective February 1, 2024!
Due to recent changes in Jira and Confluence, we've made the tough decision to discontinue the OpenID Connect (OIDC)/OAuth app and no longer provide new versions for the newest Jira/Confluence releases as of January 31, 2024.
This is due to some necessary components no longer shipping with Jira/Confluence, which would require some extensive rewrites of the OIDC App.
Important Update! This app will be discontinued soon!
Due to recent changes in Jira, which no longer ships with some components required for our Read Receipts app to run, we've made the tough decision to discontinue the app, as of Februar 5, 2025.
Important Update! This app will be discontinued soon!
We've made the tough business decision to discontinue the app, as of January 11, 2025.
JIT and Azure AD: Sending Groups via SAML Attributes
Overview
In this article you learn how to transmit groups from Azure AD during Just In Time Provisioning.
Since Azure AD only supports sending group ids instead of group names, you also have to create a group transformation for each group.
Please note that there is a limit in Azure AD for only 150 groups to be sent as values in the attribute in the SAML response. If the number of groups the user is in goes over that limit (150 for SAML) then an overage claim will be added to the claim sources pointing at the Graph endpoint containing the list of groups for the user, which cannot be processed by the plugin in JIT.
Configure Azure AD for Transmitting Groups via SAML Attributes
With its default settings, Azure AD does not send group IDs for Just In Time Provisioning. To change this, navigate to the Enterprise Application you've created for your Atlassian instance in Azure AD:
Next, click on All Applications and search for the Enterprise Application you have created for the SAML SSO Data Center app and click on its name:
Once opened, click on Single sign-on and then the pencil 'Edit' icon beside User Attributes & Claims
Click on the '+' icon beside Add a group claim
and change the settings to All groups and save your settings.
Now, Azure AD will send the group IDs of a user when logging in.
These you need to convert into the human-readable name by using group transformation rules for each. This is described in the next chapter as part of the SAML SSO plugin configuration.
Configure the SAML SSO Data Center app for JIT with Azure AD
Scroll down in the SAML Single Sign On Configuration → Identity Providers to access the User Creation and Update → Attribute Mapping.
Click Map to map the corresponding attribute.
Use "http://schemas.microsoft.com/ws/2008/06/identity/claims/groups" as 'Source Attribute Name' and click 'Apply' to add the new attribute mapping.
Depending on your Atlassian Data Center or Server product, it is a good idea to set (default) user group(s) for new users, such as "jira-users" for Jira or "confluence-users" for Confluence. Without assigning new users to the product specific group, they are not able to use your Atlassian product.
Please go to SAML Single Sign On Configuration → Identity Providers to access the User Creation and Update → Group Setting.
- Add (default) user group(s) for new users
- Create groups automatically which do not exist in your Atlassian product by enabling 'Create groups if they do not exist'
Also, feel free to activate any option which suits your needs.
Group Transformation
Since Azure AD only transfers group IDs and not group names, group transformations must be created for each group ID.
Scroll up in the configuration to Attribute Mapping and click Edit to create a transformation (Regular Expression) for groups.
Next to enable ‘Regular Expression’ we need to add a 'Regex and Replacement Option'.
In our example I will replace the Group object ID ‘83207436-b6ef-4c32-ba88-91d0ff954d4f’ with the group name ‘aaa-test’. If needed you can test your replacement via 'Regex Replacement Tester'.
After all transformations have been added, the window can be closed 'Close'. You need to click 'Apply' to save your regex and replacement rule.
Now it is time to save your whole SAML Single Sign-On configuration, please click 'Save'.
Where can I find the group ID?
To create a transformation for a group ID to a name, you need the group ID. The ID of a group can be found in Azure AD on the page of the group. Just copy the Object ID.