|
| 1 | +--- |
| 2 | +title: Server-to-Server Setup Disable Action Failed with Error Couldn’t remove the permission set |
| 3 | +description: This article helps you troubleshoot the error "Couldn’t remove the permission set. It may be read-only, missing, or restricted." when you disable Salesforce Server-to-Server flow. |
| 4 | +ms.date: 05/09/2025 |
| 5 | +author: sbmjais |
| 6 | +ms.author: shjais |
| 7 | +manager: shujoshi |
| 8 | +ms.custom: sap:CRM Permissions and Configurations\CRM Settings |
| 9 | +--- |
| 10 | +# Server-to-Server Setup Disable Action Failed with Error Couldn’t remove the permission set |
| 11 | + |
| 12 | +This article helps you troubleshoot the error "Couldn’t remove the permission set. It may be read-only, missing, or restricted." when you disable Salesforce Server-to-server flow. |
| 13 | + |
| 14 | +## Who is affected? |
| 15 | + |
| 16 | +| Requirement type |Description | |
| 17 | +|---------|---------| |
| 18 | +|**Client app** | Teams | |
| 19 | +|**Platform** | Web and desktop clients | |
| 20 | +|**OS** | Windows and Mac | |
| 21 | +|**Deployment** | User managed and admin managed | |
| 22 | +|**CRM** | Salesforce | |
| 23 | +|**Users** | Administrator | |
| 24 | + |
| 25 | +## Symptoms |
| 26 | + |
| 27 | +When administrator try to disable Salesforce with server-to-server flow, you receive the following error message: |
| 28 | + |
| 29 | +> Couldn’t remove the permission set |
| 30 | +
|
| 31 | +It may be read-only, missing, or restricted." on the UI. |
| 32 | + |
| 33 | +## Cause |
| 34 | + |
| 35 | +When a "disable" request is received, the server attempts to delete deployed resources, such as the connected app, permission set, and others. This error indicates that the current user either lacks the necessary permissions to delete the connected app or the app has already been removed. |
| 36 | + |
| 37 | +## Resolution |
| 38 | + |
| 39 | +1. Ensure that the user logged into the Teams admin settings has the necessary permissions to modify all data and manage permission sets. If the current user lacks these permissions, either assign the appropriate access or switch to a user who has them. |
| 40 | + |
| 41 | +2. Open the Salesforce Developer Console and run the following query to search for the permission set. Confirm that the specified permission set exists. |
| 42 | + |
| 43 | +SELECT Id, Name, Label, Description FROM PermissionSet WHERE Name = |
| 44 | +'CopilotForSalesPermissionSet' |
| 45 | + |
| 46 | +## More information |
| 47 | + |
| 48 | +If your issue is still unresolved, go to the [Copilot for Sales - Microsoft Community Hub](https://techcommunity.microsoft.com/t5/viva-sales/bd-p/VivaSales) to engage with our experts. |
| 49 | + |
| 50 | +[!INCLUDE [Third-party disclaimer](../../includes/third-party-disclaimer.md)] |
0 commit comments