Expand my Community achievements bar.

Unable to find users , user roles , company information through Mangento Rest API in postman

Avatar

Level 1

Hi , 

I am using Magento Storefront admin Panel (Adobe Commerce) and trying to use the Rest APIs in postman.

 

Yash5_4-1731663728955.png

 

 

I have generated the access token and it is working properly with other APIs

I want to find the user and user related roles through the API , these are the following endpoints which i found:

 

{{baseUrl}}/V1/company/role/:roleId/users

{{baseUrl}}/V1/company/role/:roleId

{{baseUrl}}/V1/company/?searchCriteria[filterGroups][0][filters][0][field]=<string>

 

whenever i try to access these endpoints using the token that is required for authorization it is giving 

{
    "message": "Request does not match any route."
}
 
Please guide me if there's an API endpoint for company , users , roles in magneto and how to access it  to get the desired result
1 Reply

Avatar

Level 7

Hi @Yash5 
I am not a Magento expert, but I remember I have seen endpoints like /rest/{store}/V1/company or /rest/V1/products. Maybe you need to prefix your URLs with /rest/, in case {{baseUrl}} does not already have it. Or consider also possibility that these company APIs are not ootb and you may need to develop them for your project. Just smth to think about.