How do I find users that are not a member of any groups?

Somehow new users were registered but not added to the confluence-users group, so when they login to our Confluence they get an Access Denied error.  So I need to find all users in Confluence that are not a member of a group so I can add them to the confluence-users group.

1 answer

Hi Richard,

You may find them with following SQL query:

select u.user_name, g.group_name from cwd_user u
join cwd_membership m on join cwd_group g on join cwd_directory d on
where (g.group_name != 'confluence-administrators' and g.group_name !='confluence-users')

Above query show users and groups names. However, it filters those users belong to confluence-administrators or confluence-users smile


Hope it helps.


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

373 views 20 10
Join discussion

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