Determine user's execution privilege group

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Determine user's execution privilege group

Post by SteveTX » Sun Jan 24, 2010 10:23 am

Is there a way to discover the current user's execution privilege level, such as if my user has "Administrator" access?

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: Determine user's execution privilege group

Post by SteveTX » Sun Jan 24, 2010 6:35 pm

Dirty Answer:

Code: Select all

   get shell ("net localgroup administrators")
   if it contains $USERNAME then  

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: Determine user's execution privilege group

Post by SteveTX » Tue Jan 26, 2010 1:19 am

For those who are also wondering when your users will be seeing a UAC popup, and at what execution levels will be needed, here is a very handy set of UAC charts.

Post Reply