Create User Advanced
  • 15 Dec 2022
  • 2 Minutes to read
  • Dark
    Light

Create User Advanced

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.0.0
LocationData > Text

The Create User Advanced step allows for new AD accounts to be created.



Properties

Inputs

PropertyDescriptionData Type
LDAP Server Settings

System User NameUsername for the LDAP server
---

System Password The password of the LDAP server
---

LDAP Server AddressServer address
---
DepartmentDepartment name for the user to be associated withString
EmailThe desired email for the userString
First NameThe new user's first nameString
Last NameThe new user's last nameString
Login NameThe login name for the new userString
Ou PathThe Organizational Unit for the new userString
User PasswordThe password for the new userString



Common Errors

Incorrect Parmater Count, Data Not Mapped Correctly

If not all input data values are not properly configured, the step will cause an error.

To correct this, ensure that each field has a value.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Create User Advanced 1[CreateUserAdvanced] in flow [Flow 2]: Incorrect Parmater Count, Data Not Mapped Correctly 
 ---> DecisionsFramework.LoggedException: Incorrect Parmater Count, Data Not Mapped Correctly 
 ---> System.Reflection.TargetParameterCountException: Parameter count mismatch. 
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 
   at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data)   
   --- End of inner exception stack trace --- 
   at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data) 
   at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData) 
   at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)   
   --- End of inner exception stack trace ---



Object reference not set to an instance of an object

If the values for creating a user are not configured, an error will be displayed.

To resolve this, ensure all fields for creating the new user are configured with a value.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Create User Advanced 1[CreateUserAdvanced] in flow [Flow 2]: Exception invoking method CreateUserAdvanced on class ActiveDirectoryManager 
 ---> DecisionsFramework.LoggedException: Exception invoking method CreateUserAdvanced on class ActiveDirectoryManager 
 ---> System.NullReferenceException: Object reference not set to an instance of an object. 
   at DecisionsActiveDirectorySteps.ActiveDirectoryManager.ConvertLdapServerAddressToBaseLdapPath(String ldapServerAddress) 
   at DecisionsActiveDirectorySteps.ActiveDirectoryManager.CreateUserAdvanced(String ouPath, String loginName, String userPassword, String email, String firstName, String lastName, String department, String systemUserName, String systemPassword, String ldapServerAddress)   
   --- End of inner exception stack trace --- 
   at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data) 
   at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData) 
   at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)   
   --- End of inner exception stack trace ---




The LDAP server returned an unknown error

If the LDAP server settings are not properly configured an error will occur.

To resolve this, ensure that the inputs for the LDAP Server Settings are correct.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Create User Advanced 1[CreateUserAdvanced] in flow [Flow 2]: Exception invoking method CreateUserAdvanced on class ActiveDirectoryManager 
 ---> DecisionsFramework.LoggedException: Exception invoking method CreateUserAdvanced on class ActiveDirectoryManager 
 ---> System.DirectoryServices.Protocols.LdapException: The LDAP server returned an unknown error: 52 
   at System.DirectoryServices.Protocols.LdapConnection.Connect() 
   at System.DirectoryServices.Protocols.LdapConnection.BindHelper(NetworkCredential newCredential, Boolean needSetCredential) 
   at System.DirectoryServices.Protocols.LdapConnection.Bind() 
   at ActiveDirectory.ActiveDirectoryMethods.GetLdapConnection(String serverIp, String userName, String userPassword) 
   at DecisionsActiveDirectorySteps.ActiveDirectoryManager.CreateUserAdvanced(String ouPath, String loginName, String userPassword, String email, String firstName, String lastName, String department, String systemUserName, String systemPassword, String ldapServerAddress)   
   --- End of inner exception stack trace --- 
   at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data) 
   at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData) 
   at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)   
   --- End of inner exception stack trace ---




Was this article helpful?

What's Next