Adding the same user back from Active Directory


Stash is configured to connect to Active Directory. One user has been mistakenly deleted from Active Directory. The user had some data such as forked repositories(some are public) and public keys. It was all lost in stash. We added the user back into Active Directory and the user can now log back in but does not have permission to fork a repository within his project (adding public key was successful).

It seems re-added user is still linked to old user (because they are same users actually new user project is the same as old user ones?). Does stash delete all data including user account information when user is removed? How can I fix the permission issue?

1 answer

0 votes
Andrew Er Atlassian Team Nov 05, 2014

Hi Kenichi, 

This seems to be an unusual case. Once a user is explicitly given a certain permission, the permissions and ssh keys should remain even after the user is deleted. The permission and ssh keys are stored on a completely different table in the Stash database as long as the user name that was created is similar to the one before. You could open a ticket at and we can look into it. 


Andrew Er

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Thursday in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables ROLLBAR_ACCESS_TOKEN...

177 views 0 11
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