On 16 Feb 2012, at 11:46 AM, Rajendran P wrote:
> Is there any cocoa by which i can determine , if the logged in user is
> standard user or admin user ?
Admin/non-admin status usually corresponds to privilege on Mac OS X, but it
isn't identical. Users may be assigned privileges that would otherwise be
strictly administrative. The status may not tell you as much as you may hope.
I assume you want to know whether the user is able to do something, not simply
whether he has admin status. We can't help you with what you really want to do
unless you tell us what that is. It may be as simple as attempting an operation
and seeing whether it fails, or it might involve delving into directory
services or authorization services. (See "Authorization Services Programming
Guide" for an overview of the model.)
— F
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]