Does a Workflow know the current user?
How can a Workflow get the current username (and its roles if security is implemented)?
-
Hi Omar,
You can use the "Get Current User" activity.
--Alejandro
/customer/servlet/servlet.FileDownload?file=00P6000000e88EgEAI
0 -
Thanks Alejandro!
It also gives a list of Roles associated with the User in an output argument which is great (provided Security is enabled for the Site).
Should the user be needed in the Viewer's (custom) code, I guess the "AuthenticationSucceededEvent" might do.
0 -
Hi,
I need to perform some logic base on the role of the user. How do I identify which role the user belong? Currently, I only see the user's name in the alert activity's output; not the role.
Thanks,
Eric
0 -
If you look in the properties of the Get Current User activity, under 'Out Arguments' there is an object you can grab that contains the users roles.
Cheers,
Kevin0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer