View Full Version : Determine User type
Oct 23, 2009, 03:21 AM
How can i determine the current user type i.e. admin, standard user through my cocoa application?
Oct 23, 2009, 01:51 PM
Call the BSD function getgroups() and look for the presence of the admin group (80).
This may not be useful, though. The human using the computer could have a user account that's not in the admin group, but that human still knows an admin-user's name and password.
Oct 23, 2009, 02:20 PM
Why don't you design your application with Authorization Services instead?
User's will get a consistent experience, understand what's going on when you need to elevate privileges for a certain operation, etc.