After setting up Sitecore commerce on Azure PaaS, I got the below 403 forbidden error when getting to Business tools.
On digging into the logs further we found the below:
11 06:45:02 INFO Authorization was successful for user: "sitecore\Admin".
11 06:45:02 ERROR CommerceController.OnActionExecuting.Forbidden: User not allowed for action /api/GetNavigationView()
This is because Commerce related roles were missing in the Azure PaaS web app. Below two roles are required to access the commerce business tools.
sitecore\Commerce Administrator
sitecore\Commerce Business User
These roles were available on my local laptop setup but not on Azure WebApp. After packaging this from local and deploy to Azure WebApp we got past the 403 Forbidden error.
On digging into the logs further we found the below:
11 06:45:02 INFO Authorization was successful for user: "sitecore\Admin".
11 06:45:02 ERROR CommerceController.OnActionExecuting.Forbidden: User not allowed for action /api/GetNavigationView()
This is because Commerce related roles were missing in the Azure PaaS web app. Below two roles are required to access the commerce business tools.
sitecore\Commerce Administrator
sitecore\Commerce Business User
These roles were available on my local laptop setup but not on Azure WebApp. After packaging this from local and deploy to Azure WebApp we got past the 403 Forbidden error.
No comments:
Post a Comment