Skip to Main Content
Nintex Ideas

đź‘‹ Use this site to provide feedback and ideas for all Nintex Products. See our post on Nintex Community "Welcome to Nintex Ideas" for more details on Nintex Ideas, how an idea is handled by our product teams and more!

If you have questions about Nintex Ideas, please contact

If you require support, please visit Nintex Customer Central

If you have a sales inquiry, please contact

Categories Management
Created by Olivier Chatagnon
Created on Jun 10, 2024

Include user impersonated by K2Service account with .net code in the user license list

To: Miguel Cuenca Mena <>,


Hi all,

After discussion with our development team, they said that it's not how K2 users were intended to be used.

They propose to open a feature request on it:

If you want this feature to be implemented in a future update, you can use the site , that allows for a public forum for logging, tracking, and voting on features and product enhancements.

I would strongly encourage the creation of a new item on this forum for this request.

While I can log this request on your behalf and gladly will, the advantage of you logging it, is added visibility and tracking on your end. If I open the idea for you, this idea will be only visible by K2 partners.

Logged ideas on this site are seen by customers and product management and there is the ability to vote and comment on each idea.

Propose statement for this idea,

Title: Include user impersonated by K2Service account with .net code in the user license list


When we use .net Code to do action on behalf a user, this user should be added in the license list.

Here the step to show what is expected to change:

A) Install the service broker K2Field.WorkflowManagementSvO and create corresponding SmartObject 'Smo TaskManagement' based on the service Object 'TaskManagement'.

Code is:

private void ActionTask(string SN, string actionName, string strUserToImpersonate)


SourceCode.Workflow.Client.Connection cnx = new SourceCode.Workflow.Client.Connection();


if (!String.IsNullOrEmpty(strUserToImpersonate) && !cnx.User.FQN.Equals(strUserToImpersonate))


SourceCode.Workflow.Client.WorklistItem wkItem = cnx.OpenWorklistItem(SN);




B) Create a workflow with at least one destination (setup by a variable) and one action 'Approve'.

C) Create a new user on active directory

D) Start the workflow and in Data and XML field setup the user created in step C.

E) On the smartObject 'Smo TaskManagement', Call the method 'Get worklist Items' and fill the User to Impersonate with the user created in step C. -> Get the Serial number column.

F) On the smartObject 'Smo TaskManagement', Call the method 'Action task': Fill the serial number, the action (Approve) and the user to impersonate.

G) Go to Management/License and search for the user created in step C


User is not here;

Excepted result:

User should be here.

  • Attach files