Management api 400 bad request error when assign a role to user

I want to use the management API to assign a specific role to a user
but every time I get 400 error
I use flask and this is my code


and I get my MGMT_API_ACCESS_TOKEN from API explorer and it has the requested
scopes (read: roles, update: users)
and I used the postman too and get an error (I used request data as a params on postman) like
‘?roles=[rol_ZNrwNNQqwSOmhpov]’ and still not working any help

Hi @osamass9000,

It looks like you are getting a timeout, not a 400 error. It may have to do with the user ID not being encoded.

Try that and let us know if it works.

Dan

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