How can I automatically create a folder for any user in our enterprise upon login?
I would like to create standard folders for every user within the enterprise automatically upon login if the folder does not exist in the user's account yet. Each folder will be named "Personal Folder - username". Has anyone done something similar before or does anyone know how to go about this?
Thank you
-
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?
-
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
-
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.
-
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.
-
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
Please sign in to leave a comment.
Comments
6 comments