I need to change the Custom Role for a large group of users, I like to do this through a scripted API call.
No it looks like that the Custom Role is not a field that you can use to fetch users and you also can’t add or change that filed.
Or am I doing something wrong and do I need to read better :)
iMac-van-Ron:python ron$ curl -H 'Authorization: Bearer <TOKEN>' -X PUT https://api2-eu-west-1.almostinsided.com/user/{UserID}/role/'Extreme Hero'
This action is only available for fields:email,oracle_sso_id,token_sso_id,openidconnect_sso_id,facebook_sso_id,janrain_sso_id,saml_sso_id,linkedin_sso_id,username,oauth2_sso_id,avatar
/Ron