Hi,
Do you know how can I get the list of users who never logged in into Confluence, while Confluence is connected to JIRA directory.
This query does not seem to work as it brings me users who actually logged in
What is the right way to find these users?
Many thanks!
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');
Hello Simha,
Thank you for contacting us about this. The query is indeed the right one, the same as the one listed in How to check for users who never logged into Confluence:
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');
The query should list any users who do not have a last authenticated date listed. I just ran the query on my own instance, and I can confirm it only returns users who have never logged in.
If you're getting another result there, you could also try the query at How to Identify Inactive Users in Confluence. You'll be able to list users who have not been active since a certain date.
Let me know if you have any questions about that.
Regards,
Shannon
The correct query should use the 'login.count' attribute instead. Like this.
SELECT LOWER_USER_NAME as username, lower_email_address as email, lower_display_name as displayname
FROM CWD_USER 3WHERE LOWER_USER_NAME not in
(SELECT CWD_USER.LOWER_USER_NAME
FROM CWD_USER, CWD_USER_ATTRIBUTES
WHERE CWD_USER_ATTRIBUTES.USER_ID = CWD_USER.ID
AND CWD_USER_ATTRIBUTES.ATTRIBUTE_NAME = 'login.count');
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.