How to access user info using RESTAPI

I am trying to get access to a user’s id. Which API do I have to call for that? I tried [/user/v1/users/] but I am getting this error: You do not have permission to perform this action.

I have a staff level client.

Hi @Suleman_Hamdani

Can you provide more information such as how you want to utilize these APIs? Because getting user or course information authorization is required.

Hi Suleman,

As Mahendra rightly stated you need to ensure you have the correct permissions.

After that is done you can get the current username using GET /user/v1/me. After obtaining the username, use GET /user/v1/accounts/{username} to retrieve the user’s profile.

@Suleman_Hamdani

Here is the handy blog having info about open edX related user apis

Hopefully this blog will help, if not please add further contextual information to your question

Are you hitting lms service?
Do you want to get user information of the logged in user? (If yes, above shared blog has everything your are looking for)
Are you trying to get users list via super/staff user? (as you trying to hit user/v1/users, its returning 404 to me on hitting lms service)