Community Halloween is live until October 31st! Complete any 2 quick activities to earn the 2025 Community Halloween badge. Feeling brave? Check out the activities here
Start Free Trial

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Accessing the logged in User name in a workflow on server

wwatson
12 - Quasar

We have a use case where we want to use the logged in user name on server to restrict what a workflow shows them.

 

wwatson_0-1597062121394.png

 

We don't want the extract the server's own user but the user name of the person logged in and use that in the workflow to filter the output.

 

In my case that would be my name as shown.

 

Does anyone know how to access the Alteryx server logged in user name from within a workflow?

14 REPLIES 14
ChrisMasonTampaBay
7 - Meteor

I'm pretty sure the missing piece (at least the piece I was missing) is to ensure you select the 'Include Mongo _id Field' checkbox at the bottom of the configuration pane.

ChrisMasonTampaBay_0-1666902638477.png

 

gklas
6 - Meteoroid

This appears to only work when running the workflow from the Gallery, but it returns NULL when called through the webapi.  Anyone had success getting the user id when calling the web api?

Linas
8 - Asteroid

For less technical users internally, we’ve built a workflow that automatically queries the user list. The users only need to join the parameter value with the user list. Thanks again for the '__cloud:UserId' solution, it's so sneaky and brilliant!

Asifali128
5 - Atom

Hi Linas,

 

if you could upload the workflow for that, it will be great help

Asifali128
5 - Atom

hi @Linas

pls upload the workflow you have created