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

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

Confluence User Audit

I am butting up against my user limit and we would like to evaluate who has access but hasn't access Confluence in X weeks/months.

Can someone supply the query to show last login (which can be found in your profile)?

Unfortunately I am hitting brick walls trying to figure out this query/joins. 

Thank you in advance!

1 answer

1 vote
Ivan Lima Community Leader Oct 16, 2020

Hi @Jonathan Smith, did you have a chance to look into the User base audit queries confkb and the related content on this page? I know it's not a direct answer to your question but it should help you to achieve what you want here.


@Ivan Lima 

  Thank you for that link. Unfortunately we are only returning 1 row which is not accurate.  

Note: We use active directory server instead of confluence internal directory.


select u.lower_user_name, l.SUCCESSDATE
from logininfo l
join user_mapping um on l.USERNAME = um.user_key
join cwd_user u on u.lower_user_name = um.lower_username
join cwd_membership m on = m.child_user_id
where l.SUCCESSDATE < '2020-10-01 08:00:00.000' --24 hour format
and m.parent_id =
from cwd_group g
where g.lower_group_name ='confluence-users'
and g.directory_id=
from cwd_directory d
where d.lower_directory_name = 'active directory server')

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

132 views 1 5
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