How to get the user or his rights?
Klaus on-rev
klaus at major.on-rev.com
Mon Mar 26 15:27:45 EDT 2012
Hi Ken,
Am 26.03.2012 um 20:47 schrieb Ken Ray:
> On Mar 26, 2012, at 1:38 AM, Tiemo Hollmann TB wrote:
>
>> Hi Bob,
>> thanks for your hints.
>> For windows standalones you can set the UAC Execution Level to "require
>> Admin". So LC knows, who's logged in. I wonder, if we can retrieve this
>> information from LC?
>
> You can get the name of the user that is logged in by checking the environment variables $USERNAME (on Windows) and $USER (on Mac). As to the user's permission level, this is what I use (watch line wraps):
> function stsIsAdminUser pName, pComputer
what is "pComputer", resp. how do I get this value?
> put stsAdminUserList(pComputer) into tList
> ...
> end stsAdminUserList
>
> Hope this helps,
>
> Ken Ray
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com
More information about the use-livecode
mailing list