Dear community,
I have project with more then 200 users. Now I would like to export users from the project into Excel. Is there any DB Query to filter out users from the project.
Regards,
Deepak
@Deepak
Something like this should work.
SELECTu.user_name,u.last_name,u.first_name,u.email_address,m.parent_name,substring( ua_lastlogin.attribute_value, 0, len(ua_lastlogin.attribute_value) - 2 ),u.activeFROM cwd_user uLEFT JOIN cwd_user_attributes ua_lastlogin on u.id = ua_lastlogin.user_id and ua_lastlogin.attribute_name = 'lastAuthenticated'LEFT JOIN cwd_membership m on u.id = m.child_idORDER BY u.user_name asc, u.last_name asc, u.first_name asc, m.parent_name asc
Thank for the query @Brant Schroeder
It looks like you're new here. Sign in or register to get started.