Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

AD Groups, We can see AD Users but no AD Groups

John Edwards June 21, 2020

We have Jira connected and sync to AD

We can see all the AD users but no AD Groups.

What have we done wrong?

 

1 answer

1 vote
Artur Moura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2020
Hi John,
It seems that the Base DN specified on AD connector setup don’t have groups, have you checked if the groups that need to be synced are inside the specified base DN?
Here is an example of a sample configuration of AD Directory, that can help identify the problem:
Base DN: ou=region,dc=example,dc=atlassian,dc=com
On the above example, the connector will try to sync all users and groups that exist under the ‘ou=region,dc=example,dc=atlassian,dc=com’. All users and groups that are on other locations will not be imported.
In case your users and groups are on different OUs, we can use the Additional Group DN and Additional User DN to specify where Jira should look for each type of object.
Base DN: dc=example,dc=atlassian,dc=com
Additional User DN:
Additional Group DN: ou=Groups
On this new example, the connector will try to sync all users under dc=example,dc=atlassian,dc=com, basically all AD domain users, and will only sync groups below ou=Groups,dc=example,dc=atlassian,dc=com DN.
For more detailed information, you can check a great documentation about how to connect to AD https://confluence.atlassian.com/adminjiraserver/connecting-to-an-ldap-directory-938847052.html].
Cheers!
Artur Moura
John Edwards June 24, 2020

Hi,

I got this going but I don't know why

I think our Base DN is ok

ldap.basedn": "dc=canterbury,dc=ac,dc=nz

Note I don't know much about AD and I have inherited this setup, but our guys who know about AD said it looked right

 

ldap.group.dn": "ou=Jira,ou=Research,ou=IT"

This didn't look right though to the AD guys

 

We did a test and put in a test group under the Jira ou

We could see this test group but no others

so the suggestion was we take away the 

ou=Jira,ou=Research,ou=IT from ldap.group.dn

did that and it gave us errors (unfortunately didn't capture the errors)

My thinking here is that this did work but as we have over 20, 000 groups it was taking a long time ti sync - not sure

so we put the original back in "ou=Jira,ou=Research,ou=IT"

so we see all groups now not just the ones under Jira ou

 

Actually we see more groups than we want so we need to restrict it

How can we get rid of all AD groups so I can start again?

We are doing this on a test Jira environment

Cheers

Artur Moura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2020 edited

Hello, again John,

Once you configure LDAP connector without Additional Group DN, the connector will try to bring on all groups under BaseDN, on your case, if all AD domain has over 20.000 groups, it will be 20.000 groups on Jira, so if you set the Additional Group DN, LDAP connector will bring on only groups for that specific OU, which means, based on your example, it will be all groups inside OU ou=Jira,ou=Research,ou=IT.

To be sure all the groups exist in AD on the OU you want to have groups imported, you might do a double-check using PowerShell with ActiveDirectory Module installed, running the below command: 

PS: C:\windows> Get-ADGroup -Filter * -SearchBase "ou=Jira,ou=Research,ou=IT,dc=canterbury,dc=ac,dc=nz"

On the above example, the command will return all groups inside Jira OU, you can change to OU that you want to test.

After when you are sure what OU you want, just update the LDAP connector on Jira.

Stay safe,

Artur Moura

John Edwards June 25, 2020

Hi,

How do i get rid of the 20, 000 groups so i can then restrict it to just the ones i want?

 

Cheers

Artur Moura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 26, 2020

Hi John,

The better way to restrict groups on the OU is to use Group Filter Objects, under Group Schema Settings.  This field is to configure an LDAP Search Filter, so for example, you can use this below:

(&(objectCategory=Group)(cn=Atlassian * group name in a particular env))

By the above example, you can filter by group name.

Cheers,

Artur Moura

John Edwards June 29, 2020

Thanks, will try this but how do i get rid of the 20, 000 groups so i can then restrict it to just the ones i want?

Cheers

Artur Moura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 30, 2020

Hi John,

After you setup the Group Filter Objects, the groups there aren't in the filter, will be automatically removed from Jira database.

Cheers,

Artur

Artur Moura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 8, 2020

Hi @jo 

Were you able to rid of the other groups?

Artur

John Edwards August 4, 2020

Hi,

I have had a month where Jira Test was down with a Java issue :-(

Artur, you provided me with:

(&(objectCategory=Group)(cn=Atlassian * group name in a particular env))

but i am not sure what to do with it.

I have this under Group Schema Settings

Group Object Class: group

Group Object Filter: (objectCategory=Group)

Group Name Attribute: cn

Group Description Attribute: description

 

my groups are under here:

ou=Jira,ou=Research,ou=IT

Sorry i am not an AD expert

 

Cheers,

John

Artur Moura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 5, 2020

Hi John,

Could you please generate and share the Directory Configuration with us? 

We expect to see how your directory is configured and provide you better information.

In addition, could you confirm the DistinguishedName of the AD group, which all Jira users are inside?

From the above question, you can engage the AD team to help you confirm that.

Cheers,

Artur Moura

Suggest an answer

Log in or Sign up to answer