How to avoid creating certain LDAP groups when synchronizing?

Here's my situation. We have a LDAP directory which contains users and their group memberships. However, not all groups are useful in JIRA. Some are used for other applications.

I'll give an example:

"user1" is member of "jira.group1", "jira.group2" and "notjira.group1"

Currently, when user1 logs in, all 3 groups are created in JIRA. 

I'd like to make only groups in "jira." format be created automatically on login.

I've looked at this doc as suggested in other Answers posts, but that's not quite what I need. I want any user on that LDAP to be able to connect to JIRA regardless of the groups they belong to, I just don't want useless groups to be created when users belong to groups used in other apps.

Thanks for any help!

1 answer

1 accepted

0 vote

Hi Nicolas,

If you change your Group Object Filter as mentioned by the Example 2 of that same doc and add the specific group names you want JIRA to retrieve, you should be able to get only the groups you want.

Please note the Group object filter field has a 255 character limitation in the database, so you won't be able to list too many groups in the field.

If you need more groups than you are able to filter, you may want to put them all as a nested group of another "parent" group and filter by this parent group with something like the query below

memberOf:1.2.840.113556.1.4.1941:=cn=ParentGroup,ou=groups,dc=company,dc=com

or put them on a separate DN and only get groups from inside that DN using the "Additional Group DN" field.

 

This doc may also be helpful here.

 

Hope this helps

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

76 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you