• 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
How to find the logged in user is Admin or Standard user?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: How to find the logged in user is Admin or Standard user?
  • From: "sunil prajapati" <email@hidden>
  • Date: Fri, 4 Jan 2008 21:23:28 +0530

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to find the logged in user is Admin or Standard user?
      • From: Quinn <email@hidden>
  • Prev by Date: How to use NSMutableURLRequest with certificate authentication.
  • Next by Date: Re: How to find the logged in user is Admin or Standard user?
  • Previous by thread: How to use NSMutableURLRequest with certificate authentication.
  • Next by thread: Re: How to find the logged in user is Admin or Standard user?
  • Index(es):
    • Date
    • Thread