Create
cancel
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

Jonathan Smith Community Leader Oct 16, 2020

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.

Cheers,
IL.

Jonathan Smith Community Leader Oct 19, 2020

@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.

a.jpg

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 u.id = m.child_user_id
where l.SUCCESSDATE < '2020-10-01 08:00:00.000' --24 hour format
and m.parent_id =
(select g.id
from cwd_group g
where g.lower_group_name ='confluence-users'
and g.directory_id=
(select d.id
from cwd_directory d
where d.lower_directory_name = 'active directory server')
);

Suggest an answer

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

Table Row Highlighter - CSS Hack

(Said in an infomercial voice) Has this ever happened to you? You are on a Zoom/Teams call, looking at a large table, and people are confused where on the table you are pointing (insert video of real...

180 views 0 2
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