Skip to main content
Nintex Community Menu Bar

Get current user

  • September 22, 2008
  • 2 replies
  • 26 views

Forum|alt.badge.img+3

Hello,

 

I was wondering if there is a way to find out the current user on the process. I'd like to find out who has the process and is working on that activity at the moment, for auditing purposes.

 

Is there any property out there? 

2 replies

Forum|alt.badge.img+3
  • September 23, 2008

Are you talking via C# or maybe through reports?  To get the current user for an activity you can do this via C#


K2WorklistItem.ActivityInstanceDestination


Forum|alt.badge.img+9
  • Nintex Partner
  • September 25, 2008

Hi Zeppelin.

Also keep in mind that it may be entirely possible that there is more than one "current user".  A task can be assigned to multiple people and/or there can be multiple different tasks active at the same time.  Thus, K2 doesn't surface a single "Current User" property, but instead can report on current Activity Instance Destinations.