How to update a user directory?

I have a user associated with one directory but now he got moved to other and so the user is unable to login. How to handle this?

1 answer

are you refering to LDAP or JIRA directory? For the former, you can go to admin -> Users -> User Directories and just synchronize the LDAP to current.

I am not too sure how moving the user from one directory to another would make the user unable to login unless that user has 2 different passwords in these 2 directories.

The user got removed from one directory and created in other directory but the authentication against ldap. We cannot synchronize ldap to current jira and so this problem raised. We cannot delete the user in jira because he is assigned with some data.

ah one of those icky, hidden ones. I had few of those (actually one of them is my account in ldap which I dont even used). The only way I end up doing is to go to the database directly and 'erase' the previous footprint directly. You have to do several sql against cwd_user (to find user id, directory_id (1 = jira, other numbers meaning ldap or non-jira)) and cwd_membership. You shouldnt delete the user as that will mess up your history and such (and probably give you errors later on), so I would suggest deleteing the record in existing cwd_membership for that particular user.

Of course, strongly suggest you back up the data and doing this off hours if you are doing this in production.

There is probably another way that someone can chip in, but so far, that's how i got around with it since it seems like a dangling situation to me.

Also tried this way but no luck..

CrowdService crowdService = (CrowdService) ComponentManager.getInstance().getCrowdService();
User jiraUser = crowdService.getUser("abury");
UserTemplate template = new UserTemplate(jiraUser);

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 12 hours ago in United States

Atlassian acquires AgileCraft

         Good Day, Bad bad traffic, not sure why!!!! 1/2 hour commute took me 2 hours today 🤯 What helped me is that I kept browsing LinkedIn until...

46 views 4 0
View post

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