Skip to main content
Participant
June 4, 2013
Question

Coldfusion Run As account

  • June 4, 2013
  • 1 reply
  • 431 views

How do you display the run as account in the cf code. I do not have access to the CF administrator. Thanks for any help.

    This topic has been closed for replies.

    1 reply

    pete_freitag
    Participating Frequently
    June 4, 2013

    You can use the java system property java.username:

    <cfset sys = CreateObject("java", "java.lang.System")>

    <cfset cfusername = sys.getProperty("user.name")>

    --

    Pete Freitag

    Foundeo Inc - Makers of HackMyCF & FuseGuard