Regarding User Roles and Permissions API of Adobe commerce | Community
Skip to main content
November 18, 2024
Solved

Regarding User Roles and Permissions API of Adobe commerce

  • November 18, 2024
  • 3 replies
  • 761 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EstebanBustamante

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

3 replies

Ritesh_Mittal
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 19, 2024

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

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
November 19, 2024

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
kautuk_sahni
Community Manager
Community Manager
November 25, 2024

@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