Skip to main content
Box Employee
May 21, 2025 12:33 PM UTC
Question

Retrieving files from an inactive user

Hi,

 

We are using the box API to try to retrieve files from a deactivated user (inactive) but the API returns a 401 with the message: "Unauthorized - User has been deactivated".

 

Is there a way using the API to retrieve files from an inactive user?

    2 replies

    Box Employee
    May 21, 2025 12:33 PM UTC

    Good morning OlivierD,

     

    I understand that this is because despite the fact of having the user deactivated is the same one being used to retrieve the documents through the API. Is that right?

     

    Probably you can create an APP User and associate that user to the same folders as the User deactivated and then use it to retrieve content.

     

    Regards,

    Translate
    Box Employee
    May 21, 2025 12:33 PM UTC

    Good evening,

     

    Can you please explain how I can obtain inactive user's folders and files using SDK.

    Translate