Looking for information on exporting user account information like, name, email address and last used date. Or the ability to run a script to produce locally.
Thank you in advance for any useful information.
@Bob Vasey
Hi Bob,
one option would be to query the database directly.
Below an example that should work on mysql
Hope that helps
Cheers
Kurt
SELECT u.user_name, u.first_name, u.last_name, u.email_addressfrom_unixtime((cast(attribute_value AS UNSIGNED)/1000)) AS "Last Login"FROM cwd_user uJOIN (SELECT DISTINCT child_nameFROM cwd_membership mJOIN licenserolesgroup gp ON m.parent_name = gp.GROUP_ID) AS m ON m.child_name = u.user_nameJOIN (SELECT *FROM cwd_user_attributesWHERE attribute_name = 'login.lastLoginMillis') AS a ON a.user_id = u.idJOIN cwd_directory d ON u.directory_id = d.idORDER BY "Last Login" DESC;
It looks like you're new here. Sign in or register to get started.