I am using a Python script to change roles of users, etc also creating roles is working.
but wenn i go to set-privileges of the role i get an error
{u'error': {u'messageCode': u'ORG_1064', u'message': u"Invalid JSON in 'privileges' parameter.", u'code': 400, u'details': []}}
maybe it has to do with, that i do an URLENCODE of the post-data before sending to the API.
This worked for the other requests, but not for the set-privileges request, whre i have to send a list...
further i try to send the json directly to the api or via JSON.DUMPS, but i did not get it working yet.
do you have an working example how i can send post data to set privileges in python?
on the machine i have only arcgis portal and arcgis server. i dont have libraries of other arcgis-software