It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Find "Unknown User" @mentions

Richard Gee Sep 21, 2017

Is there some way to find / report on @mentions which now have an unknown user, because the user no longer exists?

We want to be able to report on this so they can be cleaned up regularly.

I can search for pages mentioning a specific user, but not broken ones.

2 answers

1 vote
Richard Gee Sep 22, 2017

Thanks Danny - link was malformed, it should be


Using that I get this SQL which does what I want:

SELECT um.username, c.contentid, c.title, s.spacekey
JOIN BODYCONTENT bc ON c.contentid = bc.contentid
JOIN SPACES s ON c.spaceid = s.spaceid
JOIN user_mapping um ON bc.body LIKE CONCAT('%<ri:user ri:userkey=\"', um.user_key, '\"%')
WHERE c.prevver IS NULL
AND c.contenttype IN ('PAGE', 'BLOGPOST')
AND bc.body LIKE '%<ri:user%'
AND um.lower_username NOT IN (SELECT lower_user_name FROM cwd_user)
0 votes
Danny Zuccaro Community Leader Sep 21, 2017

Hi Richard,

Found this support article that should help you get a list of unknown users - 

Hope this helps,


Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,125 views 7 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you