information_schema.users view to return information about users. You can use a SELECT query to return information about each user, as shown in the example below.
To view information about users, you must have user privilege or ownership of the user object.