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

API As-User or Client token Creating Root parentID 0 folders 403 access denied

Answered
New post

Comments

6 comments

  • DillanHorn

    This person had the same issue however the support acticle they reference is no longer valid. There seems to be some sort of setting that prevents the API from creating root level folders of non admin accounts?

     

    https://www.codecademy.com/en/forum_questions/51c32a977c82cabba700c325 

     

    https://support.box.com/entries/23529717-file-and-folder-ids

    0
    Comment actions Permalink
  • DillanHorn

    Ok I found the root cause of the issue I am seeing relates to the 'Restrict content creation' which prevents NON Admins from creating top level folders. 

     

    Is there a way to work around this? Even if I do an As-User with an admin users token I am not able to create the root level folders with the API. 

     

     

    0
    Comment actions Permalink
  • jmoldow_box

    I believe the intention of this feature is that all content in the user's root folder will be collaborated content. So an admin account can create a folder (NOT using As-User, just as themself) and then collaborate managed users into that folder.

     

    0
    Comment actions Permalink
  • DillanHorn

    Thanks, that is the work around I will use. It seems the new user provisioning capabilities act in a similiar way. 

     

    The next step will be to remove the Box Admin user so the only collaborator listed is the actual box managed user. 

    0
    Comment actions Permalink
  • nt1

    I have been trying to create something similar for several years now, but have been running into the same problem since we also have the "restrict content creation" setting applied.  Have you successfully created this app?  If so, would you be willing to share any of your steps or code to do so?

     

    Thanks!

    0
    Comment actions Permalink
  • DillanHorn

    Sorry I don't have code to share.

     

    We use OKTA provisioning and they provided an update that allows the new users root level folder to be created without the adminbox account listed as a collaborator. 

     

    Really its using the same method so if you find a function for inviting/removing a collaborator you can create the folder under the adminbox account and invite the managed user as a collaborator. Then remove adminbox and it will only belong to the user and shows at their root level. 

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.