ACP2E-4838: Restricted Admin user can’t delete customers from an allowed website
The ACP2E-4838 patch fixes the issue where an Admin user with restricted permissions cannot delete customers from the Customers grid. This patch is available when the Quality Patches Tool (QPT) 1.1.83 is installed. The patch ID is ACP2E-4838. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.10.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.8-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) >=2.4.4 <2.4.10
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
An Admin user with restricted permissions cannot delete customers from the Customers grid.
Steps to reproduce:
-
In the Admin panel, go to Stores > Settings > All Stores. Verify that Main Website has its default Main Website Store and Default Store View. Create the following:
- A store: Click Create Store, set Web Site to Main Website, enter
Group Ain Name, enter a unique Code, and click Save Store. - A store view: Click Create Store View, set Store to Group A, enter
Store View Ain Name, enter a unique Code, set Status to Enabled, and click Save Store View.
- A store: Click Create Store, set Web Site to Main Website, enter
-
Create a customer account through Default Store View so the customer belongs to Main Website and Default Store View.
-
Go to System > Permissions > User Roles and click Add New Role.
-
In Role Resources, select Customers > All Customers and its Delete permission.
-
In Role Scopes, select Custom for Main Website and allow
Group Aonly, leaving Main Website Store unselected. -
Create an Admin user and assign it to the restricted role.
-
Sign in to the Admin panel as the restricted user.
-
Go to Customers > All Customers.
-
Select the customer and select Delete from the Actions drop-down menu.
Expected results:
The restricted Admin user can open and delete the customer, because the customer’s website is in the role scope, even though the customer was created in a store view outside the role scope.
Actual results:
The customer is not deleted, and the Admin displays the following error message: More permissions are needed to view this item.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide