# Requested url error in 'Get a user by id'

**URL:** https://meta.discourse.org/t/requested-url-error-in-get-a-user-by-id/257571
**Category:** Development
**Tags:** rest-api
**Created:** [March 9, 2023, 6:39am UTC](https://meta.discourse.org/t/requested-url-error-in-get-a-user-by-id/257571 "2023-03-09T06:39:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kushalghosh9899](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kushalghosh9899/32/292844_2.png) [@Kushalghosh9899](https://meta.discourse.org/u/Kushalghosh9899)
#### Post date: [March 9, 2023, 6:39am UTC](https://meta.discourse.org/t/requested-url-error-in-get-a-user-by-id/257571/1 "2023-03-09T06:39:38Z")

</div>

I was trying to get user details by following this docs ([Discourse API Docs](https://docs.discourse.org/#tag/Admin/operation/adminGetUser) ), but getting this below error in postman console.

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/9/7/b973006eed91f264679d0387f9d01526123cc02b.png)

Note- id variable has got proper value and api key has set to all users and global values so I feel problem is not with these things.

Kindly help me out to resolve this issue.

---

<div class="post-metadata">

### Author: ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)
#### Post date: [March 9, 2023, 11:03am UTC](https://meta.discourse.org/t/requested-url-error-in-get-a-user-by-id/257571/2 "2023-03-09T11:03:00Z")

</div>

What `Api-Username` are you using? Even with a key that _can_ be used for any user, you need to select one which has the relevant (admin) access.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 8, 2023, 11:03am UTC](https://meta.discourse.org/t/requested-url-error-in-get-a-user-by-id/257571/3 "2023-04-08T11:03:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
