0

I have the set of permissions: Stores, Catalog, Customers, Stores.

enter image description here

When I get the endpoint GET /V1/inventory/stock-source-links I'm receiving the exception:

The consumer isn't authorized to access %resources.","parameters":{"resources":"Magento_InventoryApi::stock_source_link"}

Though, it works when I grant "all" permissions.

Which permission is needed to reach this endpoint?

1

Try to mark checked for source and stock and then check once in POSTman enter image description here

4
  • Unfortunately, I don't have Inventory section in the list of permissions. How to get it? – vbyno Apr 1 '20 at 6:02
  • It should be available as already mentioned in devdocs.magento.com/guides/v2.3/inventory devdocs.magento.com/guides/v2.3/rest/modules/inventory/… ..second link for rest api – John Apr 1 '20 at 6:28
  • Thank you! I've tried it for Magento 2.3.1, and it doesn't work. Though, for Magento 2.3.4 it works fine with Source to Stock Assigning permission set. So, it seem to be some Magento 2.3.1 bug – vbyno Apr 1 '20 at 13:28
  • ok great ..may be issues with 2.3.1 – John Apr 7 '20 at 4:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.