Jira standalone server, how to select which directory to create a user in?

I have a jira plugin which syncronizes users from two different Active Directories. However when my jira plugin is creating a user the users directory tag equals the AD which has highest priority in the User Directory List.
I would like to specify which directory tag the user should have when I create the user. Is this possible?

Currently I'm using UserManager to create users.

The method I'm using is
createUser(UserDetails userData)

Creates a user in the specified directory (userDirectoryId).

How do I specify which userDirectoryId to use?


https://docs.atlassian.com/jira/7.0.7/com/atlassian/jira/user/util/UserManager.html

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,787 views 18 22
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