Forums

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

Active Directory sync issue

Johan Henriksen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 19, 2021 edited

Hi

I've been trying for some days to solve this issues, and got to admit. I need some help.

Now every user in our AD gets synced to Confluence, and that’s not the ideal solution, as admin, consultant etc. is synced too due to the AD structure.

I’ve learned that a solution would be to specify, which users to get synchronized using object filtering and the following should work:

  • (&(objectCategory=Person)(sAMAccountName=*)(memberOf=CN=Confluence Users,OU=Confluence,OU=Security Groups,OU=Groups and ressources,OU=Company,DC=Example,DC=Local))

And it also does, sort of. – 3 users get synced out of nearly 200. All 200 users are members of the group “Confluence Users” in our AD.
Two of the users synced are in same OU, the last one is in his own OU.

Setup as of now:

System:

  • Confleunce version: 6.0.5
  • Build Number: 7103

Server Settings:

  • Directory type: Microsoft AD

LDAP Schema:

  • Base DN: OU=Company, DC=Example, DC=Local
  • Additional User DN: OU=Users
  • Additional Group DN: OU=Confluence,OU=Security Groups,OU=Groups and ressources

User Schema Settings:

  • User Object Filter: (&(objectCategory=Person)(sAMAccountName=*))

Group Schema Settings:

  • Group Object Filter: (&(objectCategory=Group)(cn=confluence*))

 

Steps I’ve done:

  • Created new security groups in AD -> new groups didn't have an effect neither on previously working users.
  • Copied working user -> copied user didn’t get synced.
  • Removed the 3 synced users from “Confluence Users” group, synced and they disappeared as they should. – added them to the group, ran a sync again and the same 3 persons appeared in user directory.
  • Removed random users from “Confluence Users”, ran sync, re-added them to the group, synced again, but that didn’t do anything either.
  • Toggled Enable Incremental Synchronisation on/off - > didn’t make a difference.

 

1 answer

1 accepted

0 votes
Answer accepted
Thomas Deiler
Community Champion
April 23, 2021

Dear @Johan Henriksen ,

first of all I have to point out that you did an excellent job how detailed you described your problem. Many requestores just drop one line (sometimes just a copy of the summary into the body) an expect help.

What you did so far seems to be right. The problem with connecting AD to Confluence/Jira is its, per company, individual configuration.

So I strongly recommend to use an LDAP browser to find the correct User Object Filter. Doing this from within Confluence is pure pain.

Also very helpful is somebody of the AD admins. If well trained, they could bring value.

And last but not least read into the AD/LDAP syntax reference. This is not always intuitive.

So long

Thomas

Johan Henriksen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 26, 2021

Hi Thomas

Turned out the LDAP user didn't have access to read memberOf due to permissions in our AD - just wasn't part of the correct AD group which gave the specific access. Rookie mistake.

I'm accepting your answer as the solutions, as the LDAP browser was part of the finding :) 

Thanks

ViswanathanR October 5, 2021

Hi, the above user object filter (

(&(objectCategory=Person)(sAMAccountName=*))

brings every user to Confluence. We are on Connected model and in our case includes the leavers too. 

I tried updating to with usercontrol 512 or 2 as below. But sync failed. Now I'm looking to bring active users and I'm not sure

(&(objectCategory=Person)(sAMAccountName=*))(!(UserAccountControl=512))
(&(objectCategory=Person)(sAMAccountName=*))(!(UserAccountControl=2))

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events