Error 4700 when updating user settings

Description
I’m trying to update profile settings. The token has scope user:write which should be sufficient, since the user is attempting to update their own settings. Why do I need those additional scopes?

Error
{“code”:4700,“message”:“Invalid access token, does not contain scopes: [user:write:admin, zms:user:write]”}

Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth

Which Endpoint/s?
PATCH users/_jneLUhhQTmF09bdksDaiQ/settings

Hey @jimig,

Can you try passing in the word me instead of the userID? That will fix the issue.

PATCH users/me/settings

Thanks,
Tommy

Thanks - this works as expected. Probably worth fixing the bug or updating the docs to reflect this?

1 Like

Hey @jimig,

We will update our docs to mention to use me for user level apps.

CC @shrijana.g

Thanks,
Tommy

1 Like