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

Oskar Granlund August 1, 2017

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