How to get the user or his rights?

Bob Sneidar bobs at twft.com
Fri Mar 23 13:00:43 EDT 2012


Okay so ID -G in OS X returns a space delimited list of groups the user belongs to. If 80 is in that list, then he is an admin. You can use the form ID -p and the results will be human readable, but you can't just look for admin because other groups may contain the string admin, like _lpadmin for example. 

I am not going to dig into how to do this on Windows. 

Bob


On Mar 23, 2012, at 12:41 AM, Tiemo Hollmann TB wrote:

> Hello,
> 
> I have some configuration in my program which I would like to show only to
> the admin and not to a standard user.
> 
> Is there a way to read the logged in user from the system or his permission
> level (win & mac)? I didn't find anything in the docs. Or is there another
> approach to differentiate between users?
> 
> Thanks
> 
> Tiemo
> 
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list