Forum Discussion

lokithorshield's avatar
lokithorshield
Contributor
10 years ago

alter Sys.UserName at run time

Can we possibly alter Sys.UserName during runtime or atleast the browser user name property?

 

Mahesh

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi Mahesh,

     

    > Can we possibly alter Sys.UserName during runtime [...]?

    Sure, you can. Use the RebootAndContinue() function to reboot and login as some other user. As the Sys.UserName is expected to return the name of the currently logged-in user, it will change its value if you login as another user.

     

    P.S. My guess is that your actual need is somewhat different...

    • lokithorshield's avatar
      lokithorshield
      Contributor

      Alex yes thats right. We cannot login to another user. However the admin guys can pass parameters as run time. I cannot reboot.

       

      Mahesh

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        Hi Manesh,

         

        Not sure I understood... Could you please elaborate?