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)
How do I specify which userDirectoryId to use?
https://docs.atlassian.com/jira/7.0.7/com/atlassian/jira/user/util/UserManager.html