Expand my Community achievements bar.

Regarding User Roles and Permissions API of Adobe commerce

Avatar

Level 1

Hi, 

Is there any way to retrieve user roles and permissions via Rest API of Adobe commerce?

We are not able to find any such API through which we can fetch details of the user and its roles. 

 

Let me know!

 

Thanks!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Community Advisor

Hi @SanoojPa ,

 

AFAIK,  Adobe Commerce (Magento) doesn't provide a direct REST API to retrieve user roles and permissions. However, you can create a custom API endpoint to fetch this data by querying Magento's internal tables  or using Magento's Authorization classes.

 

To retrieve roles and permissions, you'd need to extend Magento with custom code.

 

Thanks

Ritesh Mittal

Avatar

Community Advisor

Hi, 

I’m not sure about the exact level of detail you’re looking for or which user details you're trying to retrieve, but you might want to explore the User Management API: https://adobe-apiplatform.github.io/umapi-documentation/en/API_introduction.html.

For reference, here are the available Adobe Commerce APIs: https://developer.adobe.com/commerce/webapi/rest/use-rest/.

 

Hope this helps



Esteban Bustamante