Mock Data Server and scope moderator:manage:banned_users

Hey guys,

I’m using the Twitch CLI mock data server and I can’t pass the scope ‘moderator:manage:banned_users’ to try to ban an user.

I use Postman and here is what my request looks like :

http://localhost:8080/auth/authorize?client_id=MY_CLIENT_ID
&client_secret=MY_CLIENT_SECRET
&grant_type=user_token
&user_id=2592882
&scope=user%3Aread%3Aemail%20user%3Aedit%20moderation%3Aread%20moderator%3Amanage%3Abanned_users

My URIDecoded scope :

user:read:email user:edit moderation:read moderator:manage:banned_users

I got this response :

{
    "status": 400,
    "error": "Bad Request",
    "message": "Invalid scopes requested"
}

I don’t see where I made a mistake, if I remove the scope moderator:manage:banned_users it’s working fine. Can you ban an user with the mock data server ?

Thanks !

It is possible that the CLI has not been updated for the newer scopes.

You should raise this as an issue over on the CLI repo rather than the forums.