MutingPermissionSet defines permissions to disable within a PermissionSetGroup. It extends PermissionSet and reuses its permission structures, but enabled permission settings have the opposite meaning: they select permissions to mute rather than permissions to grant.
A muting permission set restricts the permissions supplied by its group. It is not an org-wide deny rule or a complete statement of a user's effective access. It is also a separate metadata component: the group's reference to it does not contain the muting permission entries.
Key Elements
| Element | What the Element Controls |
|---|---|
label |
Required name of the muting permission set. The label is not the component's API name used for metadata operations. |
userPermissions |
Selects named user permissions. Within each entry, name identifies the permission and enabled=true selects it for muting. |
objectPermissions |
Selects permissions on the object identified by object. Flags such as allowCreate, allowRead, allowEdit, allowDelete, viewAllRecords, modifyAllRecords, and viewAllFields select the corresponding permissions for muting when true. |
fieldPermissions |
Selects field access for muting through readable and editable. The field value uses an object-qualified API name, such as Job_Request__c.Salary__c. For shared Activity fields, specify Event or Task. |
classAccesses |
Identifies an Apex class through apexClass. Setting enabled=true selects access to that class for muting. |
pageAccesses |
Identifies a Visualforce page through apexPage. Setting enabled=true selects page access for muting. |
flowAccesses |
Identifies a flow through flow. Setting enabled=true selects flow access for muting; the entry does not define the flow itself. |
customPermissions |
Uses name to identify a CustomPermission and enabled to select it for muting. |
customMetadataTypeAccesses |
Uses name to identify a custom metadata type. An enabled entry selects readability of that type's records for muting, not access to one individual record. |
customSettingAccesses |
Uses name to identify a custom setting. An enabled entry selects readability of its records for muting. |
applicationVisibilities |
Identifies an application through application. Setting visible=true selects application visibility for muting. |
tabSettings |
Identifies a tab through tab. The visibility values are Available, None, and Visible. Interpret this as a muting setting, not an ordinary permission-set visibility grant. |
recordTypeVisibilities |
Identifies a record type through recordType. Setting visible=true selects record type visibility for muting. |
externalCredentialPrincipalAccesses |
Identifies a principal through externalCredentialPrincipal. The value combines the external credential name and principal name, separated by a dash. Packaged names include the package namespace followed by two underscores as a prefix. |
externalDataSourceAccesses |
Identifies an external data source through externalDataSource. An enabled entry selects access to that data source for muting. |
Behavior and Constraints
Permission flags select restrictions
Read the permission entries as a set of restrictions applied to the group. For example, userPermissions.enabled=true selects the named user permission for muting, objectPermissions.allowEdit=true selects object edit permission for muting, and fieldPermissions.readable=true selects field read permission for muting.
A false permission flag is not an affirmative access grant. The inversion applies to permission settings; it does not turn every inherited configuration field, such as hasActivationRequired or license, into a permission restriction.
Muting is scoped to the group
The restrictions apply to the PermissionSetGroup that includes the muting permission set. To determine a user's effective access, evaluate the group's permissions together with the user's actual access assignments. The mute entries alone cannot establish whether the user can access an object, field, or executable resource.
Administrative access has a separate viewing requirement
Access to this metadata type requires at least one of these permissions:
- View Setup and Configuration
- Manage Session Permission Set Activations
- Assign Permission Sets
- Manage Profiles and Permission Sets
View Setup and Configuration is specifically required to view client settings, field permissions, layout assignments, object permissions, permission dependencies, tab settings, permission set group components, and record types in a muting permission set. Having another permission in the access list does not replace this viewing requirement.
Deployment and Retrieval
Retrieve and deploy this component under the MutingPermissionSet metadata type, not PermissionSet. Use its API name as the member identity; do not substitute its label.
In Metadata API file format, muting permission sets reside in the mutingpermissionsets directory with the extension .mutingpermissionset. The filename matches the component's API name. For example, Finance_Mgmt_MutingPermSet is stored at mutingpermissionsets/Finance_Mgmt_MutingPermSet.mutingpermissionset.
When capturing both a group and its muting configuration, include both components in the package.xml manifest:
- A
PermissionSetGroupmember for the group. - A
MutingPermissionSetmember for the separate muting definition.
The group's mutingPermissionSets element identifies the muting component but does not embed its permission entries. Retrieving the group alone is therefore not a substitute for retrieving the muting definition. MutingPermissionSet supports the * wildcard in the manifest.
Relationships
The nested collection determines what each resource name means. Class, page, and flow entries are access settings for executable resources, not definitions of those resources. Repeated name elements are not interchangeable: a custom permission, a custom metadata type, and a custom setting have different meanings even though their entries use the same child element name.
References
-
ApexClass:classAccesses.apexClass. -
ApexPage:pageAccesses.apexPage. -
CustomApplication:applicationVisibilities.application. -
CustomField:fieldPermissions.field, using an object-qualified field API name. -
CustomMetadata:customMetadataTypeAccesses.nameconcerns readability of records at the custom metadata type level; it does not identify an individual custom metadata record. -
CustomObject:objectPermissions.objectidentifies an object;customSettingAccesses.nameidentifies a custom setting. -
CustomPermission:customPermissions.name. -
CustomTab:tabSettings.tab. -
ExternalCredential:externalCredentialPrincipalAccesses.externalCredentialPrincipal, identifying the credential and an associated principal with a dash-separated name. -
ExternalDataSource:externalDataSourceAccesses.externalDataSource. -
Flow:flowAccesses.flow. -
RecordType:recordTypeVisibilities.recordType. -
ServicePresenceStatus:servicePresenceStatusAccesses.servicePresenceStatus.
Referenced By
-
PermissionSetGroup:mutingPermissionSets. This element belongs to the group, not toMutingPermissionSet.
Reported Issues
-
A group retrieval can leave the muting permission content missing. In a 2020 report, an admin retrieved a permission set group containing a muting permission set and received only the muting component's name. Retrieving it as an ordinary permission set also did not work for the reporter. The answer identified the separate
MutingPermissionSetmetadata type as the component to retrieve; the discussion does not establish a resolution for the reporter's subsequent retrieval error. See the muting permission set retrieval discussion.
Common Questions
Why does enabled=true appear in a muting permission set?
In MutingPermissionSet, an enabled permission setting selects a permission to disable within the group. It does not grant that permission. A false flag is not an affirmative access grant either.
How do I retrieve a muting permission set with its permission set group?
Include the group under PermissionSetGroup and the muting definition under MutingPermissionSet in the manifest. The group's mutingPermissionSets reference contains the component name, not its permission entries.
Does a muting permission set remove a permission everywhere for a user?
No. Its restrictions are scoped to the group that includes it. Determining the user's effective access requires the group's permissions and the user's actual access assignments.
Should I use the label or API name when deploying MutingPermissionSet?
Use the component's API name for metadata operations and its filename. The required label names the muting permission set but does not replace that metadata identity.
Why can't I view object and field permissions in a muting permission set?
Viewing those settings specifically requires View Setup and Configuration. Another qualifying permission, such as Assign Permission Sets or Manage Profiles and Permission Sets, does not replace that viewing requirement.