I am looking to update an integration with Box to switch file ownership from App Users to the Service Account.
Though I'm working through the Python SDK, I followed the example in the documentation for this scenario: https://developer.box.com/docs/deprovision-user-accounts
from boxsdk import Client, JWTAuth
auth = JWTAuth(
client_id='our_client_id',
client_secret='our_app_secret',
enterprise_id='our_enterprise_id'
jwt_key_id='our_public_key_id',
rsa_private_key_file_sys_path='path_to_private_key',
rsa_private_key_passphrase='our_passphrase',
)
access_token = auth.authenticate_instance()
client = Client(auth)
service_account_user = client.user().get()
app_user = client.user('app_user_id_to_transfer_from').get()
app_user.transfer_content(service_account_user)
The Box API response at the end is a 403 with the header fields error="insufficient_scope", error_description="The request requires higher privileges than provided by the access token."
Any insight into why the API isn't allowing me to complete this operation?
Thanks!