Hello,
I need to get users which are not active in database. On the column cwd_user.active I got a user with 1 value even though is not active on application. He can not login. Why he has this 1 value?
I made the following for active user: But i need a query also for active with not acces on jira
SELECT DISTINCT cwd_user.lower_user_name,cwd_user.lower_first_name,cwd_user.last_name,cwd_user.created_date,cwd_user.updated_date,cwd_user.active AS user_status,
GROUP_CONCAT(cwd_membership.parent_name) AS GRUPURI
FROM cwd_user
JOIN cwd_membership
ON cwd_user.id = cwd_membership.child_id
AND cwd_user.directory_id = cwd_membership.directory_id
JOIN licenserolesgroup
ON Lower(cwd_membership.parent_name) = Lower(licenserolesgroup.group_id)
JOIN cwd_directory
ON cwd_membership.directory_id = cwd_directory.id
WHERE
cwd_directory.active = '1'
AND
cwd_user.active = '1' and
license_role_name = 'jira-software'
GROUP BY cwd_user.user_name