Add a user to multiple sso groups
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 06:03 AM
can you please help out how can we add one user into multiple sso group from the workflow orchestrion
or let me know any another way we can achive
Labels:
- Labels:
-
Best Practices
-
Incident Management
2 REPLIES 2
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 07:26 AM
Hi @hemantnh ,
You can use a After insert BR on sys_user_grmember
Condition: group = <group_sysid>
var group = new GlideRecord('sys_user_group');
group.addQuery('sys_id', 'IN', '<sysid1>, <sysid2>, <sysid3>');
group.query();
while(group.next()){
var usgr = new GlideRecord('sys_user_grmember');
usgr.initialize();
usgr.user = current.user;
usgr.group = group;
usgr.insert();
}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 07:54 AM
Hi @hemantnh ,
Please refer to below article:
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda