How can I automatically create a folder for any user in our enterprise upon login?

New post

Comments

6 comments

  • Murtza

    You can create a folder in the user's account using the Box API. The API also enables you to create a new user account, so you can batch together these setup operations.

     

    Please let me know if that works for your use case?

    0
    Comment actions Permalink
  • nt1

    I'm sorry, but I'm a bit of a novice as I have never used the Box API before.  Is there any additional software that I need to make a cURL request?  I already have a developer token for the app, but there is nothing else in the Box Developers area that I see that allows me to make these types of requests.

     

    Thank you

    0
    Comment actions Permalink
  • Murtza

    cURL is command-line tool to make HTTP requests. You can use your BOX developer token with cURL to make these requests.

     

    We also have a set of SDKs that makes it easier to use the Box API.

    0
    Comment actions Permalink
  • Carora1

    What a poor answer from Box - -- " go learn our APIs"..... 

     

    Were you able to figure out another solution?

    0
    Comment actions Permalink
  • colohost

    Just wanted to point out that this answer is made even worse by the fact that if your enterprise is using Box's recommended setting of not allowing users to create content in the root, such automation is impossible, because the API calls run as the user in question, where they're not permitted to create the content.  We were trying to use an app to create a root personal and company folder in our root-restricted account.  Now I'm finding with every new user, someone must manually turn that setting off to run the creation script, but if they're already going through that hassle, they may as well just log into the new user's account to create the folders by hand.

    0
    Comment actions Permalink
  • iancrew

    Hi all:

     

    Three thoughts:

     

    1) The Box CLI (See https://developer.box.com/docs/box-cli) might be easier than the raw APIs

     

    2) I haven’t tried it, but you could probably create the folder as the Admin, add the new user as a collaborator, make the new user the owner, and finally remove the admin to work around the “as-user” limitation.

     

    3) Box (and several third parties) do offer consulting services to help with this sort of custom request. See 

    https://www.box.com/customer-success/box-consulting  for Box’s offering in that space. 

     

    Hope that helps!

     

    Ian Crew

    UC Berkeley 

    0
    Comment actions Permalink

Please sign in to leave a comment.