• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determine if user can admin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine if user can admin


  • Subject: Re: Determine if user can admin
  • From: Jay Vaughan <email@hidden>
  • Date: Tue, 19 Apr 2005 14:17:18 +0200

When setting up accounts in Mac OS X, the Accounts pref panel has a checkbox
for user accounts labeled, "Allow user to administer this computer".
How can I programmatically determine if my application is being run for a
user who is allowed to administer the computer vs. one who isn't?

The Carbon way:

err = AuthorizationCreate(&user_rights, kAuthorizationEmptyEnvironment, user_flags, &user_authorizationRef);

See Authorization Services docs for more details ..

--

;

Jay Vaughan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Determine if user can admin
  • Next by Date: Using ctl_enqueuembuf
  • Previous by thread: Re: Determine if user can admin
  • Next by thread: Using ctl_enqueuembuf
  • Index(es):
    • Date
    • Thread