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

Confluence SQL query to delete users

Jamie Edwards April 16, 2014

Hi

We need to do a cleanup of user accounts before migrating to Atlassian OnDemand. We have already managed to mark every user account that is inactive as disabled. Now we need to delete every user (1000+ of them) that has no content/contributions.

Wondering if anyone has already written such a query before we attempt our own.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Davin Studer
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.
April 16, 2014

I wouldn't do it with SQL. I would use the official API's(SOAP/REST) for that. Another option would be to use the Confluence Command Line Interface. That way you know it is done correctly.

0 votes
Rodrigo Girardi Adami
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 23, 2014

Hi Jamie,

We have a documentation here with some SQL commands to delete users from the database when it's not working from the UI. As Davin said, I wouldn't recommend doing it through the database, though easier, this can lead to data corruption if done incorrectly. Perform a database backup before any data modification, always!

Cheers,

Rodrigo

TAGS
AUG Leaders

Atlassian Community Events