Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Customize Search Filter for LDAP Picker Field

I am trying to create a LDAP picker custom field to show user's departments. I get it to work but the results are showing non-distinct results and so there are many duplicates. Is there a way I can just filter the results so they do not show duplicates?

 

My current LDAP query is:

(&(objectCategory=person)(objectClass=user)(department=*))

 Search attribute and display attribute are both: department

 

When I use the preview, the results are showing essentially duplicate departments, which I believe the reason is the query is looking for all users and then displaying their departments.

1 answer

Hi @Midnite8,

As explained in stackoverflow, there is no way to ask AD for a deduplicated list of department values. Your LDAP filter is the closest we can do and then we will need to deduplicate it after retrieving the results.

I believe you are using the Scriptrunner LDAP Picker field, if yes, then there is some customization that can be done. Perhaps, you can have a script to deduplicate the result from the LDAP filter.

I hope that this helps.

Thanks,
Moga

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.13.1
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you