I am trying to retrieve the list of users who are not present in a particular group.
We are trying to validate an application with the user credentials through unix AIX server and the user should be present in a particular group. For now, we need to get the list of users who are not in the group (for our testing with various test scenarios).
I tried the below command to list users in a group.
"lsgroup -a users groupname"
Please help me how to use NOT ! operator for the above command or let me know if there is any other way to get users not in a group.
--Suriya