I am trying to get the number of users who have never logged into Confluence Server 6.6 - there are only 2 when I went through the tables. The SucessDate is null which is expected but I can't figure out the postgres statement to query those 2 users. I have tried SUCCESSDATE is NULL but to no avail
Hello,
You can try where li.SUCCESSDATE IS NULL depending on your query and which tables your running against. But you can also use this query:
select user_name from cwd_user where user_name not in
(SELECT cwd_user.user_name
FROM cwd_user, cwd_user_attribute
WHERE cwd_user_attribute.user_id = cwd_user.id
AND cwd_user_attribute.attribute_name = 'lastAuthenticated');
Taken from KB: How to check for users who never logged into Confluence
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.