Loading

[SFS] Error When Renaming a Salesforce Field Service 'Service Territory': "Field is not writeable: Group.Name"

Publiseringsdato: May 12, 2026
Beskrivelse

In Salesforce Field Service (SFS), when a Service Territory is created, Salesforce automatically creates and associates a Public Group with the same name as the Service Territory. This Public Group is used internally by Field Service for scheduling and dispatch operations.
When a user later tries to rename the Service Territory, Salesforce automatically attempts to update the name of the associated Public Group as well. If the user does not have the Manage Users system permission (which is required to rename Public Groups), the rename operation fails.

Non-admin users without this permission will encounter the following error:

FSL.TR0023_ServiceTerritory_BeforeAfterUpdate: execution of AfterUpdate caused by: 
System.SObjectException: Field is not writeable: Group.Name (System Code)

This error is thrown by the Field Service managed package trigger FSL.TR0023_ServiceTerritory_BeforeAfterUpdate, which fires when a Service Territory record is updated. The trigger attempts to update the linked Public Group's name, but the user lacks the required permission to do so.

Løsning

This behavior is by design in Salesforce Field Service.


Root Cause: Renaming a Service Territory triggers Salesforce to automatically rename the associated Public Group. The Manage Users system permission is required to update a Public Group's name (Group.Name field). Most service resource profiles and non-admin profiles do not include this permission by default.


Solution: Grant the Manage Users permission to users who need to rename Service Territories. This can be done via the user's Profile or a Permission Set.

Steps to Grant the Manage Users Permission via Permission Set

  • Go to Setup > Permission Sets
  • Click New (or select an existing permission set assigned to the user)
  • Enter a name in the Label field (for example, "Service Territory Rename Access")
  • Click Save
  • Click System Permissions
  • Enable the Manage Users permission
  • Click Save
  • Assign the permission set to the affected users

Important Note

The Manage Users permission is a powerful system-level permission that grants broad user management capabilities across the org. Evaluate your security model carefully before assigning this permission broadly. Consider limiting it to specific users or roles who genuinely need to rename Service Territories.

Knowledge-artikkelnummer

005104418

 
Laster
Salesforce Help | Article