Any changes made to a permission set within a Permission Set Group (PSG) will cause the PSG status to change to "Failed" due to an unsuccessful recalculation. This happens when the permission set has incorrect data object permissions - View Setup, Edit Setup, or Create Setup.
This article explains how to fix a Permission Set Group (PSG) that fails recalculation because a permission set inside it has bad Setup object permissions (View Setup, Edit Setup, or Create Setup).
Any change made to a permission set within a Permission Set Group (PSG) triggers a recalculation of that group. If one of the permission sets in the group has incorrect data object permissions — View Setup, Edit Setup, or Create Setup — the recalculation fails and the PSG status changes to "Failed".
Use Salesforce metadata retrieval to pull the affected Permission Set Group and its Permission Sets. For example, use a package.xml like this to retrieve a Permission Set named "test" and a Permission Set Group named "externalObject":
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>externalObject</members>
<name>PermissionSet</name>
</types>
<types>
<members>test</members>
<name>PermissionSetGroup</name>
</types>
<version>61.0</version>
</Package>
This package.xml tells Salesforce's Metadata API to retrieve the specified Permission Set and Permission Set Group definitions as XML files you can edit and redeploy.
In the retrieved Permission Set metadata files, set the following object permissions to false, then redeploy:
<viewSetup>false</viewSetup> <customizeSetup>false</customizeSetup> <deleteSetup>false</deleteSetup>
These tags control whether the permission set grants View Setup, Edit Setup, or Create Setup access on Salesforce data objects. Setting them to false removes the invalid grant that was blocking recalculation.
Deploying an update to any Permission Set inside a Permission Set Group causes that group to be recalculated and updated automatically. Only change the viewSetup, customizeSetup, and deleteSetup values described above - do not modify any other permissions in the file, since unrelated changes can affect access outside of this fix.
002723601

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.