How to add users in group through Scripted Rest API ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2023 02:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2023 06:53 AM
I don't think this is a valid business requirement.
which is the source and target instance here?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2023 07:09 AM
@Ankur Bawiskar this is my source instance when they add member in groups so it will reflect in target instance.
So I created Scripted Rest Api in target instance this is the target instance, So i tested it's not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2023 07:17 AM
It seems this is not a business requirement but a POC or learning exercise.
What debugging have you done so far?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2023 07:32 AM
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