Within NW2010, do we have any access to CGI variables? In particular, I'm looking for cgi.auth_user. I do know "Initiator" is pretty close, but it isn't the same thing.
Where does cgi.auth_user come from?
Who does start the workflow? How? Where?
What's the relation between cgi.auth_user and the workflow?
cgi variables come from your webserver.
cgi.auth_user is the user who is visiting the current page. If the site uses web server authentication (i.e. Integrated Windows Authentication, Basic authentication), then the value of cgi.auth_user will be that of the current user, i.e. “CONTOSO\kim_akers”.
When dealing with an interactive process, that’s going to be the current user. If it’s a scheduled or system-initiated process, it’ll be the service account making the call.
Btw, it doesn’t sound like Nintex has access to cgi variables.
Alan McCollough - Lead Web Programmer – ANTHC - Tel: 907-729-2633
Is the page you are trying to access is under SharePoint context? or its under IIS context? i mean is it a page you created outside SharePoint? because the cgi variables can be viewed as per following script. to display these IIS variables create a file on your server called serversvariables.aspx and add the following in it and then browse the ASPX page:
<%For Each var as String in Request.ServerVariables Response.Write(var & " " & Request(var) & "<br>")Next%>
Now, back to your question, Nintex workflow run within the context of SharePoint, and it does use the SharePoint API to access data. So i believe you can write your own Inlinefunction to retrieve the Auth_User variable. Please see my colleague Vadim blog about how to create custom Inlinefunction.
Retrieving data ...