Transfer ownership of a folder to an external user

New post


1 comment

  • ChuckBoeheim

    With some help from Box Support, I have a viable workflow for this now.


    The content of external collaborators cannot be seen with impersonation via the As-User header. It's necessary to get a token for the former owner (now the collaborator) in order to be able to retrieve the list of collaborators and find the collaboration ID that must be deleted. Once you have the collaboration ID, the As-User impersonation is sufficient to delete the object, so it's just a single call that needs the user token.


    Because I had to search hard to find it, I'll also mention that you obtain a user token by constructing a JWT with box_sub_type = 'user' and sub = the internal ID of the target user. 


    Hope this helps someone.


    Comment actions Permalink

Please sign in to leave a comment.