Actually the only reason I want to know is that tech support wants to know when a user calls in.

I just want to place some text in the UI, so that indicates whether the user has admin rights or not.

Rich

On May 15, 2009, at 12:02 PM, Kyle Sluder wrote:

On Fri, May 15, 2009 at 2:33 PM, iseecolors <iseecol...@sbcglobal.net> wrote:
I am looking for how to determine if a given user is allowed to Administer the host computer or not. I am guessing that there is something similar to
CFPreferencesCopyValue or NSUserName that I can use to determine this
information.

Don't try to head the user off at the pass.  If you need the user to
authenticate as an administrator, don't disable that functionality
simply because the user is not an administrator.  The authorization
interface allows authenticating as any administrator, not just the
currently logged-in user.

--Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to