List of users on an AIX system

Is there a way to generate a list of users with name, user ID, and Security Group? It is urgent for audit purposes.

Please help.

Generally, all the Unix systems is having that info in /etc/passwd file ( if the file is properly and none of the field is avoided)

awk -F: '{print $5"|"$1"|"$3}' /etc/passwd

Or try

lsuser

There can be added several attributes that you want to see; check the man page.

or try below command:

id

;);):wink:

Hi ahmad,

AFAIK, "id" will display information about the current user only?
just curious to know if they are flavor specific or so?

id will only show what is your current login user at the moment, it wont show much. check your /etc/passwd or /etc/shadow or /etc/group for more information on the users and group