AnsweredAssumed Answered

REST API update user level & role

Question asked by Stuart.Moore on Nov 21, 2017
Latest reply on Nov 22, 2017 by Stuart.Moore

I'm trying to update a set of users within our ArcGIS Online setup to be level 1 users and to assign a specific role.


i've create a python script that can change their name (below)

fsURL = "[userID]/update"
payload2 = {'firstName':'Test', 'f': 'json','token' : aToken}


but when i update it to change their level and role it doesn't work, well I get a success response


fsURL = "[userID]/update"
payload2 = {'level':'1','roleId': 'Rolexx', 'f': 'json','token' : aToken}