# Is there a way do check if user with specific username exist?

**URL:** <https://forum.mapillary.com/t/is-there-a-way-do-check-if-user-with-specific-username-exist/5350>\
**Category:** Web and notifications\
**Created:** [September 12, 2021, 2:40pm UTC](https://forum.mapillary.com/t/is-there-a-way-do-check-if-user-with-specific-username-exist/5350 "2021-09-12T14:40:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cepprice](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@cepprice](https://forum.mapillary.com/u/cepprice)\
**Post date:** [September 12, 2021, 2:40pm UTC](https://forum.mapillary.com/t/is-there-a-way-do-check-if-user-with-specific-username-exist/5350/1 "2021-09-12T14:40:51Z")

</div>

I need to check whether user with concrete username exists or not. With API v3 it could be done via query

[https://a.mapillary.com/v3/users?usernames=%s&client\_id=%s](https://a.mapillary.com/v3/users?usernames=%25s&client_id=%25s)

Is there similar request in API v4?

---

<div class="post-metadata">

**Author:** ![jorrarro](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/jorrarro/32/70811_2.png) [@jorrarro](https://forum.mapillary.com/u/jorrarro)\
**Post date:** [September 12, 2021, 4:32pm UTC](https://forum.mapillary.com/t/is-there-a-way-do-check-if-user-with-specific-username-exist/5350/2 "2021-09-12T16:32:05Z")

</div>

If you only have few usernames, you can manually check if [Mapillary URL]/app/user/[username] gives user pictures or error message.

And you may try the undocumented way:

```auto
https://graph.mapillary.com/graphql?access_token=[YOUR_MAPILLARY_TOKEN]&doc=query%20getData(%24username%3A%20String!)%20%7B%0A%20%20%20%20%20%20user_by_username(username%3A%20%24username)%20%7B%0A%20%20%20%20%20%20%20%20 __typename%20created_at_seconds%20description%20id%20username%20stats%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20distance%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20km%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20__ typename%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20images%0A%20%20%20%20%20%20%20%20%20%20%20%20__typename%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D&query=query%20getData(%24username%3A%20String!)%20%7B%0A%20%20user_by_username(username%3A%20%24username)%20%7B%0A%20%20%20%20__typename%0A%20%20%20%20created_at_seconds%0A%20%20%20%20description%0A%20%20%20%20id%0A%20%20%20%20username%0A%20%20%20%20stats%20%7B%0A%20%20%20%20%20%20distance%20%7B%0A%20%20%20%20%20%20%20%20km%0A%20%20%20%20%20%20%20%20 __typename%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20images%0A%20%20%20%20%20%20__ typename%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A&operationName=getData&variables=%7B%22username%22%3A%22[USERNAME_TO_CHECK]%22%7D

```

---

<div class="post-metadata">

**Author:** ![cepprice](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@cepprice](https://forum.mapillary.com/u/cepprice)\
**Post date:** [September 12, 2021, 4:47pm UTC](https://forum.mapillary.com/t/is-there-a-way-do-check-if-user-with-specific-username-exist/5350/3 "2021-09-12T16:47:52Z")

</div>

> [@jorrarro](#):
>
> ```auto
> https://graph.mapillary.com/graphql?access_token=[YOUR_MAPILLARY_TOKEN]&doc=query%20getData(%24username%3A%20String!)%20%7B%0A%20%20%20%20%20%20user_by_username(username%3A%20%24username)%20%7B%0A%20%20%20%20%20%20%20%20 __typename%20created_at_seconds%20description%20id%20username%20stats%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20distance%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20km%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20__ typename%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20images%0A%20%20%20%20%20%20%20%20%20%20%20%20__typename%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D&query=query%20getData(%24username%3A%20String!)%20%7B%0A%20%20user_by_username(username%3A%20%24username)%20%7B%0A%20%20%20%20__typename%0A%20%20%20%20created_at_seconds%0A%20%20%20%20description%0A%20%20%20%20id%0A%20%20%20%20username%0A%20%20%20%20stats%20%7B%0A%20%20%20%20%20%20distance%20%7B%0A%20%20%20%20%20%20%20%20km%0A%20%20%20%20%20%20%20%20 __typename%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20images%0A%20%20%20%20%20%20__ typename%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A&operationName=getData&variables=%7B%22username%22%3A%22[USERNAME_TO_CHECK]%22%7D
> 
> ```

I get access denial (I have read, write and upload permission with my acess token)
