Symptom
Although the Delete button has been Disabled under Business Action Restrictions, the user is still able to see the Delete button in the frontend UI.
Environment
SAP Cloud for Customer
Reproducing the Issue
Take Opportunity Business Object as an example:
- Go to Administrator work center.
- Go to General Settings view.
- Click on Business Role.
- In the drop down select all Business Toles.
- Select role A and click on edit button.
- Go to tab "Fields & Actions".
- Under "Business Action Restrictions", "Delete Opportunity" is disabled.
- Now on as user B who is assigned with Business Role A.
- Go to Sales work center.
- Navigate to Opportunities view.
- Choose one Opportunity and click on More.
- The Delete button is still there.
Cause
When clicking on the Delete button, there will be an error message: "You are not authorized to perform this action".
Resolution
The user B will not be able to delete any Opportunity due to the error. This is the standard system behaviour for other Business Objects as well.
Keywords
Delete; Delete Disabled; Action; visible; You are not authorized to perform this action , KBA , SRD-CC-IAM , Identity & Access Management , LOD-CRM-OPP , Opportunity Management , Problem