Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ruhi

macrumors member
Original poster
Jun 17, 2009
70
0
Hello,

How can i determine the current user type i.e. admin, standard user through my cocoa application?

Thanks,
Ruhi.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.