Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Update Directory Id of Users through groovy ?

Anzar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2020

Hi,

I want to update the Jira User Directory through groovy. I have scriptrunner installed on my instance. I actually want to migrate users from LDAP to internal through a script. Moreover, the password should not change while migrating from Active LDAP directory to Internal Directory.

1 answer

1 accepted

1 vote
Answer accepted
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2020

I don't think you can just "move" a user.

You could create a new user in your internal directory then delete it from the ldap directory. Note that when you do that, users would lose group membership maintained in jira. So your script might also need to manage that.

But I don't think you will be able to store the user's LDAP password in the internal directory. If you could just read a password from LDAP, it would not be very secure.

However, it sounds to me like perhaps you could benefit from using the "internal directory with ldap authentication".

This type of directory won't store the users' password in Jira, but rather send a query via LDAP every time the users attempts to authenticate.

Everything else in the directory is mostly identical to an internal directory (like group membership management etc).

Anzar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 27, 2020

Hello Peter,

Thanks for the help. I got that we have to create the group membership maintained in Jira too through the database after the transfer of the script. 

Thank you! This helped a lot.

Like Anzar Khan likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Jira Events