Find all watches for a user

I have a problem that must of come up before.   I have an employee that just left the company and his email is being forwarded the manager.  The manager, whom is now receiving the email, wants me to find a way to "unwatch" everything that the ex-employee was watching to reduce the email flow.  

For both JIRA and Confluence is there a way to find and remove all watches for a given user?

Thanks in advance!

4 answers

1 accepted

1 vote
Accepted answer
Davin Studer Community Champion Feb 18, 2015

Stephen Deutsch has a user macro that can do this. Another option would be to install the Adaptavist sudo addon and then sudo as the user and remove them. I know it is archived as says it is not supported on recent versions, but it is still working just fine on my 5.7 instance. Stephens user macro is below.

That macro is fantastic! Thank you, problem solved.

Thanks for the recommendation! :)

@Stephen Deutsch, the macro is really useful, as we just had the same challenge. Great work! Just for everyones information: It works in Confluence 5.9.x as well!

You can view Subscribers for a specific space via SpaceAuditor -> Notifications. It will show you all Blogs/Space subscribers as well as subscribers for all the pages in this space.

In general if employee has left the company why not to delete this employee from the list of users used by Confluence ? I believe this should stop all the notifications for this user.

Hi, thanks for the info, what is "SpaceAuditor"? Is that a plug in as under space admin or general admin I have no SpaceAuditor. The employee's ID is now listed as inactive in confluence, does that stop notifications? All our users are handled through Active Directory and so there is no local manipulation of users...

Yes, sorry, I did not realize at first that it is a separate plugin to be installed: I'm not sure if Confluence still sends notification to inactive users.

OK Space Auditor is a plug-in. I'll check it out. Side note in the report is lists total pages and total current pages. What makes a page "current" in Confluence?

You might want to look at the answer to a somewhat similar question I asked:

(FYI – we are using LDAP, and our problem is that when users leave their accounts sort of disappear, and but the watches still are there (as Unknown User), and can't be removed.  Guilherme from Atlassian provided a DB command to remove all of a user's watches.)

For JIRA it was very easy just issue a JQL of watcher = "uid" and that solves it for JIRA. Now to confluence...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

473 views 3 18
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