Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6708341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:44:51+00:00 2026-05-26T07:44:51+00:00

A caveat to begin with – I don’t actually know if what I want

  • 0

A caveat to begin with – I don’t actually know if what I want to do is possible, particularly because I’m not well versed with LDAP/Active Directory or JIRA.

I’m trying to integrate my shiny new installation of JIRA with my existing active directory. What I want to do is set up some specific JIRA groups (e.g. in London\Security Groups\JIRA*) and then have JIRA only import the users who have membership of those groups. However, in the directory set up page in JIRA, I don’t understand how to do this. It seems to indicate that I can import users and groups, but not users from groups.

What am I missing? (apart from expert level knowledge of AD!)

Update

Under my domain, I have an organisational structure like this:

London\Users

London\Security Groups\JIRA

Under the latter organisational unit, I have a security group called “jira-users”. The former contains all users.

So far I’ve tried the following queries and none of them have worked :

(all prefixed with &(objectCategory=Person)(sAMAccountName=*)")

memberof=CN=jira-users,ou=London,ou=Security Groups,ou=JIRA,dc=mycompany,dc=local

memberof=CN=JIRA,ou=London,ou=Security Groups,dc=mycompany,dc=local

(prefixed with just &(objectCategory=Person)")

memberof=CN=jira-users,ou=London,ou=Security Groups,ou=JIRA,dc=mycompany,dc=local

Completed

The query that works is this :

memberof=CN=jira-users,OU=JIRA,OU=Security Groups,OU=London,DC=mycompany,DC=local

I hadn’t realised that for a folder structure that is logically, left to right, London\Security Groups\JIRA, the organisational units need to be listed in reverse order.

Further Update

This only works when using the DirectorySearcher class for some reason, e.g.

DirectoryEntry rootEntry = new DirectoryEntry("LDAP://dc=mycompany,dc=local");
DirectorySearcher srch = new DirectorySearcher(rootEntry);
srch.SearchScope = SearchScope.Subtree;
srch.Filter = "(&(objectCategory=Person)(sAMAccountName=*)(memberof=CN=jira-users,ou=London,ou=Security Groups,ou=JIRA,dc=mycompany,dc=local))";
SearchResultCollection results = srch.FindAll();

This doesn’t work in the LDAP explorer tool and subsequently, not in JIRA itself.

Last Update

So…for JIRA, you need to reverse the order AND remove the wildcard. Working query in the end is :

(&(objectCategory=Person)(memberof=CN=jira-users,OU=JIRA,OU=Security Groups,OU=London,DC=mycomapny,DC=local))

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:44:51+00:00Added an answer on May 26, 2026 at 7:44 am

    When you are setting up the user directory look under the User Schema settings. You should see a “User Object Filter” field. In there you should be able to add something like this:

    (memberOf=cn=jira-users,ou=London,dc=mydomain,dc=com)
    

    This will allow you to filter based on a specific LDAP group. Of course you will need to edit the values above to reflect your own environment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Caveat : I'm not sure if this post might be better suited for SuperUser
Using Python2.4 I want to capture output from a mysql command. One caveat is
[Caveat] This is not directly a programing question, but it is something that comes
I want a query to return all rows and all columns with one caveat:
First, a caveat. The main script is not run in a webpage . I
Caveat: new to Python. Wanting to hear from professionals who actually use it: What
Caveat: I'm working with a backend that I don't have full control over, so
Caveat: I'm relatively new to coding as well as TextMate , so apologies if
Caveat : I am not a PHP guru by any stretch - hopefully someone
Caveat: I know next to nothing about server security, so assume nothing :) We

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.