You can use the information_schema.logins view to return information about logins.

You can use a SELECT query to return information about each login, as shown in the example below.

SELECT
  *
FROM
  information_schema.logins;

For more information, see Managing logins.

Columns in information_schema.logins

Each row has the following columns with information about each login.

Column NameData TypeDescription
login_nameTEXTName of the login (email address).
first_nameTEXTFirst name of the user linked to the login.
last_nameTEXTLast name of the user linked to the login.
organization_nameTEXTName of the organization.
network_policy_nameTEXTName of the network policy associated with the login.
is_mfa_enabledBOOLEANSpecifies if the login has multi-factor authentication enabled.
is_sso_provisionedBOOLEANSpecifies if the login was provisioned with an identity provider defined in the organization’s SSO configuration.
is_password_enabledBOOLEANSpecifies if log in with password is enabled.
is_organization_adminBOOLEANSpecifies if the login is an organization admin.
is_enabledBOOLEANSpecifies if the login is allowed to authenticate.
createdTIMESTAMPTZTime the login was created.
login_ownerTEXTThe name of the identity to whom this login belongs.
last_alteredTIMESTAMPTZTime the login was last altered.
last_altered_byTEXTName of the login who edited the login. If the login was edited by a service account, the service account name appears instead.