# Which OAUTH token do I need to use to allow access to user IDs?

**URL:** <https://discuss.dev.twitch.com/t/which-oauth-token-do-i-need-to-use-to-allow-access-to-user-ids/24175>\
**Category:** API\
**Created:** [February 19, 2020, 10:23pm UTC](https://discuss.dev.twitch.com/t/which-oauth-token-do-i-need-to-use-to-allow-access-to-user-ids/24175 "2020-02-19T22:23:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jazzygrooves](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jazzygrooves/32/7887_2.png) [@jazzygrooves](https://discuss.dev.twitch.com/u/jazzygrooves)\
**Post date:** [February 19, 2020, 10:23pm UTC](https://discuss.dev.twitch.com/t/which-oauth-token-do-i-need-to-use-to-allow-access-to-user-ids/24175/1 "2020-02-19T22:23:44Z")

</div>

I’ve been developing a twitch chatbot for my channel for a bit now with no problems, but have recently wanted to do a points system like many other bots have and want to access user IDs so that even if someone changes their username their points are not erased. I looked at the docs and know that there’s a few different types of OAUTH tokens, but when reading it seemed pretty unclear which one gave me access to user IDs, the URL I got my current OAUTH from is the twitchapps/tmi generator link that was in the documentation. Basically, does my current OAUTH allow access to user IDs or do I need to generate a different one?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 19, 2020, 10:26pm UTC](https://discuss.dev.twitch.com/t/which-oauth-token-do-i-need-to-use-to-allow-access-to-user-ids/24175/2 "2020-02-19T22:26:13Z")

</div>

Technically none.

The users API requires no scopes and no Token at all

> **[Reference](https://dev.twitch.tv/docs/api/reference/)**
>
> Twitch Developer tools and services to integrate Twitch into your development or create interactive experience on twitch.tv.

It is suggested you use an App Access Token

> **[Getting OAuth Access Tokens](https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/)**
>
> Getting OAuth Access Tokens

To get the higher rate limit of 800, but since you already have a Bot User Access Token, that token will suffice to get the higher rate limit and future proof you ready for

> **[Requiring OAuth for Helix Twitch API Endpoints](https://discuss.dev.twitch.com/t/requiring-oauth-for-helix-twitch-api-endpoints/23916/)**
>
> In an effort to standardize authentication and provide security improvements for the Twitch community, OAuth will soon be required for all Twitch API endpoints in the new Twitch API, also known as “Helix.” The goal of this announcement is to...

But the users API lets you look up 100 users in a single request.

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [March 20, 2020, 10:26pm UTC](https://discuss.dev.twitch.com/t/which-oauth-token-do-i-need-to-use-to-allow-access-to-user-ids/24175/3 "2020-03-20T22:26:13Z")

</div>

Closed on March 20, 2020, 10:26pm UTC

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