Only users that logged in the last month
Hi @Natalie Salman ,
you can retrieve this info by performing an sql query :
SELECT DISTINCT u.lower_user_nameFROM cwd_user uJOIN cwd_membership m ON u.id = m.child_id AND u.directory_id = m.directory_idJOIN licenserolesgroup lrg ON Lower(m.parent_name) = Lower(lrg.group_id)JOIN cwd_directory d ON m.directory_id = d.idJOIN cwd_user_attributes cua ON cua.ID=u.IDWHERE d.active = '1' AND u.active = '1'AND license_role_name = 'jira-software'AND cua.attribute_name = 'login.lastLoginMillis'AND cua.attribute_value>1546642800000;
In order to retrieve millis value associated to start date you can use this easy online converter https://codechi.com/dev-tools/date-to-millisecond-calculators/
Hope this helps,
Fabio
@Fabio Racobaldo _Catworkx_ thanks!
Please mark my answer as accepted to close this thread!
@Fabio Racobaldo _Catworkx_ Hi we have users going out of our org and we need to make them inactive,
Can you please help me out with the sql db query.
Thanks In advance.
It looks like you're new here. Sign in or register to get started.