Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Restore JIRA data centre without users

Ash July 12, 2020

Hi,

I am trying to restore our UAT jira data centre environment from prod environment but I do not want all the users to be included.

Is there any way to import/restore without users?

 

Cheers.

2 answers

1 accepted

0 votes
Answer accepted
Ismael Jimoh
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.
July 12, 2020

Hi @Ash 

As mentioned by sachin, this is not possible. Issues, coments and actions/events are tied to users who performed them.

Hence removing users will corrupt the Jira data.

If needed, you can restore the instance to your new server and then deactivate all users using Rest API.

See update user here: https://docs.atlassian.com/software/jira/docs/api/REST/8.1.0/#api/2/user-updateUser you will need to parse the active option.

I hope this helps.

Ismael Jimoh
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.
July 12, 2020

Another option would be to make use of the iser anonymizer add/on: https://marketplace.atlassian.com/apps/1219029/user-anonymizer-for-jira-gdpr?hosting=server&tab=overview as follows.

  1. Anonymize each user, moving all actions to a dedicated user(this is a destructive action that you may not be able to recover ones done)
  2. Delete the users (Jira allows deletion of users if they haven’t created an issue).

Cheers.

Ash July 14, 2020

Thank you Ismel, I think this would fit the case, I am going to use the rest API to deactivate them all.

0 votes
Sachin
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.
July 12, 2020

Hello Ash,

The only way I can think of doing this is by making change to the entities.xml file from the xml site backup! However, it is a very time taking process and it will result in lots of data loss as everything is tired to a specific user and making any changes would result in a failure when you try to do an import. So, I would recommend you to take away the access to those users after you do the import by making changes to your user directory.

 

Best,

Sachin.

Ash July 14, 2020

Thanks Sachin that was my initial idea.

Sachin
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.
July 14, 2020

Glad to hear that!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.8.1
TAGS
AUG Leaders

Atlassian Community Events