Open
Description
Preconditions and environment
- Magento version: 2.4.5-p2 commerce
- Go to Stores > Configuration > General > General > Website Restrictions, set Access Restriction (general/restriction/is_active) to 'Yes' and set Restriction Mode (general/restriction/mode) to Private Sale: Login Only
- Create an admin integration token
Steps to reproduce
- Go to Stores > Configuration > General > General > Website Restrictions
- Set Access Restriction (general/restriction/is_active) to 'Yes' and set Restriction Mode (general/restriction/mode) to Private Sale: Login Only
- Clear the config cache
- Create an admin integration token from System > Integrations
- Send a REST api POST request to /rest/V1/customers to create a customer and include admin integration token as Bearer token as Autorization
Expected result
Since admins can create custumers in Admin area when website restrictions is on, then they should have the ability to create customers via API.
Expected: Customer created. (Registration working when the requester is an admin user)
Actual result
API raises a 400 bad request response saying: "Can not register new customer due to restrictions are enabled."
Additional information
No response
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.