Expand my Community achievements bar.

SOLVED

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.

1 Accepted Solution

Avatar

Correct answer by
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

View solution in original post

3 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

Correct answer by
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

Avatar

Administrator

@SanoojPa Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni