How to add users in group through Scripted Rest API ??

sangitakumari
Tera Contributor
 
8 REPLIES 8

@sangitakumari 

I don't think this is a valid business requirement.

which is the source and target instance here?

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

@Ankur Bawiskar  this is my source instance when they add member in groups so it will reflect in target instance.

 

sangitakumari_7-1691417233031.png

 

 So I created Scripted Rest Api in target instance this is the target instance, So i tested it's not working.

sangitakumari_5-1691417120847.png

 

sangitakumari_6-1691417157169.png

 

 

 

@sangitakumari 

It seems this is not a business requirement but a POC or learning exercise.

What debugging have you done so far?

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

Chetan Mahajan
Kilo Sage
Kilo Sage

Hello @sangitakumari ,

                                         Create BR on "sys_user_grmember" and using REST API you can reflect it in another instance. Refer this Snow - Snow integration and make changes as per your requirement Integration between 2 ServiceNow instances 

Kindly mark correct and helpful if applicable