Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to find the logged in user is Admin or Standard user?



Hi Guys,

How to find programmatically whether logged in user is  Admin  or  Standard ?
I looked at UID and GID of the users. I found that UID and GID of root user is always zero and but for Admin and Standard users it is always greater than 500 where I can not identify that whether user is Admin or Standard user.
Is there any Carbon or Cocoa APIs which can give me whether my logged in user is Admin or Standard user?

Thanks,
Sunil.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.