Zum Hauptinhalt gehen

GetCurrentUser Output WindowsAccountName

Kommentare

8 Kommentare

  • Kevin Penner
    Are you having users sign in to the site via windows AD?
    0
  • Permanently deleted user
    Kevin,

     

    Our clients do not sign in into the viewer currently. We use Windows authentication. 

     

    Walter
    0
  • Richard Diaz
    If you authenticate thru Windows, setup the viewer to sign-in automatically:

     

    User-added image

     

    Then you will be able to get the username with the workflow.

     

    Cheers...Rick

     

     
    0
  • Permanently deleted user
    Richard,

     

    Thank you for your response. Although the permissions on our site already reflect your recommendation, I still cannot see the string value for the output argument for GetCurrentUser.

     

    Walter
    0
  • Permanently deleted user
    In the Workflow Designer help file under "GetCurrentUser" it states that:

     

    When running this activity in the Workflow Designer simulator the user will be the Windows user running the Workflow Designer application.

     

    Great. That works fine. But how do I obtain the Windows username from the client who's currently running the workflow into a string variable?

     

    Walter
    0
  • Kevin Penner
    Walter, you need to enable sign in on your applications. Geocortex does not know the end user has any Windows AD context without a sign in taking place. When you are running WF designer, you are running it under the context of your own user. Geocortex, on the server is running as a service account and it does not correlate to the end client user. A signin will associate the Essentials session with the AD user, thus making the GetCurrentUser activity return the AD name claim information.

     

    To set an Essetinals site to be secured respecting AD, open up the Permissions tab, pick the dropdown option 'Window Active Directory - All Users' and put a green checkmark on the site node.

     

    https://imgur.com/VSHvdTN
    0
  • Richard Diaz
    Thanks Kevin,

     

    Forgot to add that step.

     

    User-added image
    0
  • Permanently deleted user
    Gents,

     

    Thanks for your responses. That did the trick. 

     

    Appreciate it.....Walter

     

     
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.