Hello
I'm trying to find Confluence users, in the group confluence-users, that have not logged in for X days/months and are not disabled.
With my limited SQL I've got this far.
select cu.USER_NAME, cd.DIRECTORY_NAME, li.SUCCESSDATE
from LOGININFO li
join user_mapping um on um.user_key = li.USERNAME
join CWD_USER cu on um.username = cu.USER_NAME
join CWD_DIRECTORY cd on cu.DIRECTORY_ID = cd.ID
where SUCCESSDATE < '2019-01-01' AND cu.ACTIVE = 'T'
order by SUCCESSDATE DESC;
But I don't know how to add to the search, to include just users who are in confluence-users group.
Can anyone help with this?
Thank you
Mark