Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

Comments

5 comments

  • Official comment
    Alex Novotny

    Hi!

    Can you explain what you mean by "archive" ... Do you mean the content? Or the user account? 

    Thanks, 

    Alex, Box Developer Advocate

    Comment actions Permalink
  • PEGGY DUFFY

    So, I want to place all the content for inactive users into another account so we consume only one license for all previous users  and we can take previous user content offline, eventually, after no access for 30 - 60 days perhaps.

    I can inactivate accounts based on our own, eligibility requirements. I have code to do this, written against Ruby api.

    For every inactive user, transfer their account contents to grp-stale-archive. Then after copy is made, delete the inactive user's account.  From the admin console UI you can do this. I would like to do it by handing a program, which I can write with python API, a list of boxid's for inactive users, or just their Primary email addresses.  

    Does this make sense now?

    0
    Comment actions Permalink
  • Alex Novotny

    Thank you for the additional clarification! 

    I would use our transfer owned content endpoint followed by the delete user endpoint. The python sdk has methods for both of these. 

    Hope this helps, 

    Alex, Box Developer Advocate

    0
    Comment actions Permalink
  • PEGGY DUFFY

    When i try to transfer the contents of the account (source) to final account(destination), it comaplins that the user is inactive.....and that is true. Can I make the status of the source account actiove before I transfer the content. How? What is the API call to do this? Will it work in the milliseconds between the call to activate and the very next call to transfer content? I also sent email with the code I am using. It works find, as long as the source account is active. I would like to re-activate these users, transfer content using code also.

    0
    Comment actions Permalink
  • PEGGY DUFFY

    YEs, Thanks you so much for your reply and those calls work for me also....but only is account is active status to begin with.

    0
    Comment actions Permalink

Please sign in to leave a comment.