Hello everyone,
in an external tool the users should be able to enter their own information, for this I have written my own handler, which inherits from APIHandler
.
I have given the routes @needs_scope(“users”)
.
As far as I understand the documentation, a user should have the scope users!user=NAME
. But, when I create an AccessToken for the user, this token does not have the scope.
I get this message when I try to access the new route:
Action is not authorised with current scopes; requires any of [users]
.
But when I pass users!user=NAME
as scope in the token creation process, I get this message:
Not assigning requested scopes users!user=NAME,list:users!user=NAME not held by User NAME
Am I missing something with the scopes function?
Many thanks for your help