Unable to create a new user by using create AD object activity by using orchestration

udayaprakash668
Giga Contributor

Hello,

I am unable to create a new user in AD by using Create AD Object activity in orchestration.I have create a service catalog which contains FirstName,LastName,Manager,Department,Title.So when i try to give those values as inputs to Object Data in Create AD Object activity, i am getting Constraint Violation error.

Please find the below code that i used in Object data for Create AD Object activity.

{"givenName" : "${workflow.scratchpad.f}",

"SN" : "${workflow.scratchpad.l}",

"title" : "${workflow.scratchpad.t}",

"manager" : "${workflow.scratchpad.m}",

"department" : "${workflow.scratchpad.d}"}

New user is getting created in AD when i give upto 4 inputs in the above object data. If i gave > 4 inputs in above mentioned object data then i am getting Constraint Violation error.

Regards,

Udayaprakash

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Udayaprakash,



Can you please mark the answer as correct if you are able to resolve your issue. Also please hit like. This helps in closing the thread for the question.


Thanks in advance.



Regards


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

udayaprakash668
Giga Contributor

It's working fine now.Thanks.


Hi Udayaprakash,



Glad that it worked.


Can you also mark the answer as correct since you were able to resolve the issue. This helps in closing the thread for the question. Thanks in advance



Regards


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader