How can I auto-assign the users from a specified directory (LDAP) to a certain jira group?

I have an instance that uses two authentication sources:

  • local accounts - people can register and create accounts by themselves
  • LDAP directory - people from inside the company can login with their corporate login

The problem is that I need to assing a special group, like jira-internal to the ones from the directory because they have more permissions than people from the internet.

Note: jira-users default group us useless because it is required for login and auto-assgined to all new accounts.

How can I achieve this?

1 answer

you can have more than one group with login to jira permissions
Administration -> Users -> Global permissions -> JIRA Users

so your internal users can didn't have jira-users group at all and have jira-own-staff like example as equivalent that allow them to log in

Probably I wasn't clear enough, both LDAP first login and registration are creating new jira accounts (the ones registered are local and the one with LDAP are directory accounts, not managed by jira).

THe problme is that, so far, I did not find a way to assign different groups to these two categories of users, in order to be able to give them different permissions.

It is mandatory for this to be automatic, as we do not have the time to manually edit each new auto-created account.

Probably what I need is a default group for each directory, which I wasn't able to find in the options.

"creating account" for LDAP users is not a clear creation - since they already have LDAP account used for their auth ( so as i understand name/surname also takes from ldap )
so you can add a group that defines wider permission for internal users into ldap

You assume that I do have control over the corporate directory, which in 99% of the cases is not true (including me).

As in most coporate environments the LDAP schema is almost impossible to touch and even if it would be theoretically possilbe to touch it, the birocracy would make the taks practically impossible (you'll get it implemented when the need for the change is no longer there).

For this reason, most people are using LDAP only to authenticate active accounts: login, email and password verification.

ok then maybe some group in LDAP already exist that you can use?
can you at least have directory structure from your corporate dept that rules ldap - so you can find some useful group(s)

or maybe CROWD can be a way http://www.atlassian.com/software/crowd/overview

we used it some time before ( then JIRA itself was unable to auth from ldap ) and as i remember there was an option for auto-add groups to user on creation of account, but i'm not sure can be different for different users. but if it will installed as a part of *jira suite* it can be under your control ;)

you can always narrow group search from jira ldap connector

so i think you can try on test jira site ( i hope you have it )

if you still think it's impossible in your situation - than sorry i'm have no more ideas :(

Groups sync form LDAP on big directories is not working for seceral reasons:

  • different groups with the same name
  • it would put jira on its knees due to the group number (also sync would be very slow)
  • it does pollute jira groups with tons (>1000) of groups from the directory.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,308 views 14 20
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
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