Skip to main content

Does a Workflow know the current user?

Comments

4 comments

  • Permanently deleted user

    Hi Omar,

    You can use the "Get Current User" activity.

    --Alejandro

    /customer/servlet/servlet.FileDownload?file=00P6000000e88EgEAI

    0
  • Permanently deleted user

    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
  • Permanently deleted user

    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
  • Kevin Penner

    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,

     

    Kevin
    0

Please sign in to leave a comment.