Updating Child Group Name to Reflect Parent Group Name

dmullinax
Mega Guru

I have this main group that I created a few weeks ago.  I then created a second group that inherits from the parent group, broken down by Campus/Site.  See two screenshots below.
Screenshot 2025-05-15 163118.jpg

Screenshot 2025-05-15 163224.jpg

I want to change the name of the secondary child group, but I can't update the name from there because the parent created the group name.

I drill into the parent and change the name from there.

The child name is not getting updated.

Deleting the groups and starting over with a fresh sys_id is not a solution because I'm to far into the project about to go live so I'm not going to recreate the groups.  I just want to change the child group to reflect the new name of the parent.

1 ACCEPTED SOLUTION

I found a much easier solution, and will leave this up to help out the next developer.

  1. Drill into the parent group.
  2. Click on the Groups tab.
  3. Change the name directly in the list view.

I'm surprised I got working like this, but it works.

View solution in original post

2 REPLIES 2

phgdet
Mega Sage

Hi @dmullinax, the secondary child group name seems to modified at the time it has been created. Have you try to change the name by script?

var current = new GlideRecord("sys_user_group");
if (current.get("<the_secondary_group_sys_id>")){
    current.setValue("name", "<new_name>");
	current.update();
}

 

I found a much easier solution, and will leave this up to help out the next developer.

  1. Drill into the parent group.
  2. Click on the Groups tab.
  3. Change the name directly in the list view.

I'm surprised I got working like this, but it works.