- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2019 08:18 AM
Good morning,
I am creating a new user group via an automated script and I am a little stuck on how to add a second group type to the group being created. This is what I have so far:
// Create new manager group
var mgrGroup = new GlideRecord('sys_user_group');
grpType = 'approval';
mgrGroup.initialize();
mgrGroup.name = current.program_name + ' Managers';
mgrGroup.type = grpType;
grpSysid = mgrGroup.insert();
I also need to add the type 'support' as well. Anyone have any suggestions?
Thanks,
Shawn
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2019 08:35 AM
mgrGroup.type = "approval,support";
it should work , please try and let me know.
Thanks,
JJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2019 08:35 AM
mgrGroup.type = "approval,support";
it should work , please try and let me know.
Thanks,
JJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2019 08:37 AM
JJ,
This only takes the approval type. The record will need to be recalled, initialized, and updated.
Thanks,
Derrick Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2019 08:52 AM
That worked perfectly! Much thanks!