Using user's Department/Organization from AD as a group in Jira (using LDAP)

I want to build "User Object Filter" and "Group Object filter" for fetching "Department" (field) of the user from the AD in our JIRA where we are using LDAP for authentication. After fetching make the department as users group in Jira. 

Further we have plan to implement Nested group functionality in JIRA using Department as group. We have department hierarchy like as follows

AB

ABX

ABXY

 

I am not sure if it is really possible to use Department field from AD as a group in JIRA and then make it nested.

Since I have little knowledge about LDAP and AD, so would really appreciate your help and suggestions on this.

 

1 answer

1 vote

JIRA is only really aware of the groups in AD.  If you want to pull out an attribute then you'll need some code to do it, and it won't be a group in JIRA unless you start doing things like making dummy groups for attributes or rewriting the user handling inside the application.

A better solution here would be to forget the department field and make a set of department groups in AD.

Also, as for nesting, it can understand the nesting, but it "flattens" it within the application.  As an example, if AD has a group called Birds, and a nested group called Penguins, the JIRA will see two groups.  It won't show you that Penguins is part of Birds, they're just two groups.  If you put Mr Flibble (a user) into Penguins, then, because the group is nested, he's automatically part of Birds too, and JIRA will show him as a member of Birds and Penguins.  It will also show the nesting to administrators if they are messing with user setups (e.g. they can't remove him from Birds directly, because he's only there because he's a Penguin), but not anywhere in the UI.

Hello Nic,

Thanks for your answer. Currently we cannot go ahead with groups in AD since there are some difficulties (not technical).

I think we will try to built some plugin which will fetch details from AD and add user to the group if he is not already member. And create groups on first logon from the users of respective departments.

Please let me know if you have any suggestions from your side in building such plugin.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 9 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

33 views 0 5
Join discussion

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