Auto Add to confluence-users from LDAP (Read Only with Local Groups)

Following the LDAP documentation for Confluence 5.3.1 I have configured the LDAP connector.
Works great but does not auto add the user to confluence-users so user is denied access.

Name: LDAP server
Active: true
Type: CONNECTOR
Allowed operations: [CREATE_GROUP, UPDATE_USER_ATTRIBUTE, UPDATE_GROUP_ATTRIBUTE, DELETE_GROUP, UPDATE_GROUP]
Implementation class: com.atlassian.crowd.directory.MicrosoftActiveDirectory
Attributes:
"autoAddGroups": "confluence-users"

Looking for suggestions on where to look for why this does not work as intended.
You have to manually login to Confluence and go into the user settings and manually add the user to confluence-users group, which then grants access.

thanks for any hints!

CTS


2 answers

Hey Chris,

The option Default Group Memberships only works for users on the first login, see here:

In Confluence 3.5.2 and later, and JIRA 4.3.3 and later: The first time a user logs in, their group memberships will be checked. If the user does not belong to the specified group(s), their username will be added to the group(s). If a group does not yet exist, it will be added locally. On subsequent logins, the username will not be added automatically to any groups. This change in behaviour allows users to be removed from automatically-added groups. In Confluence 3.5 and 3.5.1, they would be re-added upon next login.

Do you see this issue when trying log in Confluence with a newly created user that hasn't logged in Confluence yet?

Cheers

Hi Tiago,

So, when an LDAP user attempts to log in for the first time they are rejected. This is due to them not belonging to the 'confluence-users' group upon login.

Thanks!

Chris

Hi Chris, Did you find a solution. I'm having the same issue with Confluence 5.7.3. Regards,

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

900 views 23 12
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