Can we find out who deleted a question or an answer in confluence questions?

I'm trying to find out who deleted an answer in Confluence Questions, I have used the below query:

            select um.username, c.title, s.spacename, c.lastmoddate
            from content c
            join user_mapping um on c.lastmodifier = um.user_key
            join spaces s on c.spaceid = s.spaceid
            where c.content_status = 'deleted' and contenttype = 'CUSTOM'
            order by username;   

But it looks the answers once deleted are removed from the DB? Is that true?

2 answers

2 accepted

Accepted Answer
2 votes
Gonchik Tsymzhitov Community Champion Oct 31, 2017

Looks like it is true.

I have checked on backup and test db, really different. 

 

Hence better way is review backup file.

Going back to the backup is not the solution, I need to know who deleted the answer, in my case it is one of the system administrators, but who did it?

Gonchik Tsymzhitov Community Champion Nov 02, 2017

I have idea, it is review access logs. 

Just create a sample answer and after delete it. 

Then you can create a specific pattern for review for example your nginx/httpd logs.

 

Cheers,

Gonchik Tsymzhitov

I agree, I tried to understand what is the url hit when an answer is deleted.

Accepted Answer
1 vote

Dear Mustafa,

The query that you are using on the database will not work. When a question is deleted, the database entry will also be removed. The only way you can restore the answer is through a back-up.

As for seeing who exactly deleted what, within Confluence as a whole.. this is simply not a feature within Confluence. As an example I will take page deletion history;

https://jira.atlassian.com/browse/CONFSERVER-4792

This feature request has been open since 2005, which is asking for more detail into who deleted pages.

It seems that the team behind Confluence is not, at least for the time being.. considering deletion history as something they would like to implement.

So;

You will not be able to find out through Confluence who deleted the answer.

Friendly Regards,

Jeremy Mooiman

Sure, I can retrieve it from the back up, but who deleted it?

Jeremy Mooiman Community Champion Nov 01, 2017

Dear Mustafa,

Like I said in my answer.. unfortunately.. you cannot see this right now.

Friendly Regards,

Jeremy

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 09, 2018 in Confluence

Introducing Praecipio Consulting, an Atlassian Solution Partner

Hey there Community!  My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they c...

393 views 0 9
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