We have a number of users outside of our domain that were inappropriately added as managed users. I want to roll them off the enterprise and convert them to external users, but when using box-sdk-gen and emit a client.users.update_user_by_id(xxxx, enterprise=None)
nothing happens. It seems to execute successfully, but fetching that user again shows that the enterprise information is still present.
If I try to execute with enterprise={'id':None}
or enterprise='null'
I get a 403 insufficient permissions error. I noticed that the type on the enterprise
field is str
so that’s why I tried the latter.
{ 'code': 'access_denied_insufficient_permissions',
'help_url': 'http://developers.box.com/docs/#errors',
'message': 'Access denied - insufficient permission',
'request_id': 'xxxxx',
'status': 403,
'type': 'error'}
Raw body: {"type":"error","status":403,"code":"access_denied_insufficient_permissions","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Access denied - insufficient permission","request_id":"xxxxx"}
What am I doing wrong? Can anyone point me to how I roll these users off the enterprise?
Thanks