fkeles

users-with-mfa-and-last-login-date.sql

Sep 23rd, 2023 (edited)
601
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PostgreSQL 0.34 KB | Source Code | 0 0
  1. select id, name, email, user_type, is_mfa_activated,
  2. lifecycle_state,
  3. case COALESCE(inactive_status,-1)
  4.         when -1 then 'N/A'
  5.         when 0  then 'SUSPENDED'
  6.         when 1  then 'DISABLED'
  7.         when 2  then 'BLOCKED'
  8. end inactive_status, last_successful_login_time
  9. from oci_identity_user
  10. order by last_successful_login_time desc
Advertisement
Add Comment
Please, Sign In to add comment