Users.update() throws 500, doesn't parse incoming roles list
Closed this issue · 0 comments
mastermargie commented
Tried updating a user's roles using Users().update()
but kept getting a 500. I think it was because the function doesn't parse out the list of roles in the same way that Users().create()
does.
I was able to successfully use the function when I passed json.dumps(roles)
to it, where roles
was something like:
{'roles': [{'role_name': 'extseclead'}, {'role_name': 'extcreator'}]}
I'd love to see this re-written as Users.update_roles()
instead, with a more generic Users.update()
kept around to be able to change multiple attributes at once.