How can I auto assign groups based on a registered user's domain in Crowd (or Confluence)?

Hi,

We use Confluence & Crowd for our community. Users can register through Confluence in the Crowd directory. When the user authenticates through the Crowd directory, Crowd automatically adds a number of groups to the user, which allows the access general parts of our community. So far so good.

Now when a user registers that is an employee of one of our partners, this user is assigned a specific group which allows the user to access the partner specific part of our community. This is currently a manual action, based on the email address of the user that signed up.

I am looking for a way to automate this. Ideally I would like to define a rule or something in Crowd, that would say something like 'if a user with email domain X authenticates for the first time than automatically add group Y'. Optionally you could do this in Confluence.

I have seen this working on some sites that use Confluence, so maybe there is a plugin for this? I have not been able found it so far. Any help is appreciated.

Regards,

Geert

6 answers

1 accepted

There does not seem to be a way to resolve this currently. I posted a feature request on the Crowd support site: https://support.atlassian.com/browse/CWDSUP-8088. I will update here when I hear back from them.

Geert

Hi Geert,

There isn't such option in Crowd and there isn't any plugin available either. If those users are coming from an LDAP, the best option in this case is associated the users to the groups directly on the LDAP.

Another option can be create two directories, define different default groups to each directory and set a filter in each one to synchronize only the users that match a given email domain. Example: (&(objectClass=person)(sAMAccountName=*)(mail=*@domain_a.com))

I hope this helps.

Cheers

Hi Tiago,

Unfortunately the users are registered in a Crowd internal directory and not LDAP, so this will not work in my situation.

Geert

I didn' find any external plugin for this case, but I think you can have something similar as Confluence going to Crowd > Directories Tab > select such directory > finally click at Options tab, then when user in this directory authenticates successfully for the first time, they can be automatically added as members of such group created.

Bernardo

Hi Bernardo, thanks for your answer. What you describe is what is already in place. However, this happens for every user. I want to automatically add groups for specific users, based on the domain they belong to.

Geert

0 votes
Stefan Broda Atlassian Team Sep 15, 2014

Hi Geert, Have you found any good solution to your requirement?

Hi Stefan, unfortunately not. We still manually add groups to users.

0 votes
Stefan Broda Atlassian Team Sep 19, 2014

OK, I'll keep digging. thanks for the quick reply!

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

248 views 0 11
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot