DelegateGroup defines a delegated administration group whose users share a scoped set of administrative privileges. It controls which users delegated administrators may manage, which profiles and permission configurations they may assign, and which custom objects they may customize.
A delegated administration group is different from a public group used for record sharing. In particular, its groups element identifies public groups to which delegated administrators may assign users; it does not identify the delegated administrators who belong to the administration group.
Key Elements
| Element | What the Element Controls |
|---|---|
roles |
References roles whose users delegated administrators can create and edit. The scope includes all subordinate roles, not just the listed roles. |
profiles |
References profiles that delegated administrators may assign to users. This is an allowed-assignment list, not a list of existing user assignments. |
permissionSets |
References permission sets that delegated administrators may assign to users in the specified roles and all subordinate roles. |
permissionSetGroups |
References permission set groups that delegated administrators may assign to users in the specified roles and all subordinate roles. |
groups |
References public groups to which delegated administrators may assign users. It is not the membership list of the delegated administration group. |
customObjects |
References custom objects that delegated administrators may customize, including creating a custom tab. Relationship changes and organization-wide sharing defaults remain outside this authority. |
loginAccess |
Required boolean. true allows login-as access to users in the administered role hierarchy through this group; false disallows it. Org settings and individual users' login-access grants can still affect access. |
Behavior and Constraints
Delegated administrators must have the "View Setup and Configuration" permission. Membership in a delegated administration group does not replace that prerequisite.
The role scope and assignable-access lists work together. roles determines which users delegated administrators can create and edit, including users in subordinate roles. The effective scope therefore depends on the role hierarchy, not just the role names explicitly included in the component.
profiles, permissionSets, and permissionSetGroups authorize assignments. They do not record permissions already assigned to users, and listing a permission set does not itself assign it to anyone.
Setting loginAccess to true does not establish that every login-as attempt is permitted. Depending on org settings, each target user may still need to grant login access. The target user must also fall within the role hierarchy administered by the group.
customObjects grants broad customization authority over the listed objects, including creating a custom tab. It does not allow delegated administrators to create or modify object relationships or set organization-wide sharing defaults.
Formula access has a separate requirement: delegated administrators must have access to a custom object to use that object's merge fields in formulas. Inclusion in customObjects alone is not sufficient evidence that formula merge-field access is available.
Deployment and Retrieval
The DelegateGroup metadata definition uses the .delegateGroup suffix and the delegateGroups directory. The file base must match the delegated group's developer name, not its display label. For example, a developer name of MyDelegateGroup corresponds to delegateGroups/MyDelegateGroup.delegateGroup.
DelegateGroup inherits fullName from the base Metadata type. Its required label is the non-API display name. Keep this distinction when identifying a component for retrieval or deployment. loginAccess is also required and must contain an explicit boolean value.
The type supports the * wildcard in package.xml. Use DelegateGroup as the manifest type name and * as the member to request all components of this type.
Retrieving the group configuration should not be equated with retrieving its assigned delegated administrators. The definition describes administrative scope and allowed assignments; the reported limitation on retrieving or deploying the administrators themselves is described under Reported Issues.
Relationships
The outgoing references connect a delegated administration group to its user-management scope, assignable access configurations, public groups, and customizable objects. These are references to other components, not records of assignments already made to individual users.
References
-
CustomObject:customObjects -
Group:groups -
PermissionSetGroup:permissionSetGroups -
PermissionSet:permissionSets -
Profile:profiles -
Role:roles
Documentation Inconsistencies
The delegated-administrator prerequisite is documented as "View Setup and Configuration", while the separate object-access rule is worded as requiring "View Setup" or "Configuration". Do not interpret the latter wording as relaxing the permission required to be a delegated administrator.
Reported Issues
-
Retrieving or deploying a group definition may not transfer its delegated-administrator membership. An August 2019 community answer reported that delegated-administrator assignments could not be retrieved or deployed through Metadata API, while suggesting that group names and permissions could be retrieved. This is a reported membership limitation, not a statement that
DelegateGroupdefinitions lack Metadata API support. See the discussion of delegated-administrator retrieval.
Common Questions
Does retrieving DelegateGroup include the assigned delegated administrators?
Do not assume it does. The component contains the group's configuration. A community report distinguishes that configuration from delegated-administrator assignments and reports that those assignments could not be retrieved or deployed through Metadata API.
Should a DelegateGroup filename use the label or developer name?
Use the developer name. For a developer name of MyDelegateGroup, the file is MyDelegateGroup.delegateGroup in delegateGroups. The required label is the display name, not the file identity.
Why can't a delegated administrator log in as a user when loginAccess is true?
The user must be within the administered role hierarchy. Depending on org settings, that user may also need to grant login access. loginAccess set to true alone does not establish permission for a particular login-as attempt.
Does listing a role include users in subordinate roles?
Yes. roles includes the listed roles and all subordinate roles. The role hierarchy therefore affects the group's effective user-management scope.
Can delegated administrators change relationships on objects listed in customObjects?
No. They can customize nearly every aspect of the listed custom objects, including creating a custom tab, but cannot create or modify object relationships or set organization-wide sharing defaults.