Welcome to the new Box Support website. Check out all the details here on what’s changed.

Modifying Folder Settings via the API

New post

Comments

3 comments

  • ddriddle

    Upon further reading of the SDK documentation and experimentation I have determined that:

     

    • if can_non_owners_invite is set to false then "Only Owners and Co-owners can send collaborator invites" will be checked in the settings for a folder. This can be accomplished with code like this:
      from boxsdk import Client, OAuth2
      
      oauth2 = OAuth2(CLIENT_ID, CLIENT_SECRET, access_token=ACCESS_TOKEN)
      client = Client(oauth2)
      
      folder = client.folder(FOLDER_ID)
      folder.update_info({'can_non_owners_invite': False})
    • if folder_upload_email is set to None then "Allow uploads to this folder via email" is unchecked in the settings for a folder. This can be accomplished with code like this:
      from boxsdk import Client, OAuth2
      
      oauth2 = OAuth2(CLIENT_ID, CLIENT_SECRET, access_token=ACCESS_TOKEN)
      client = Client(oauth2)
      
      folder = client.folder(FOLDER_ID)
      folder.update_info({'folder_upload_email': None})

     

    I have not been able to determine how to set the following configuration for a folder via the SDK:

     

    • Allow people who can access this folder from a shared link to join as a collaborator (unchecked)
    • Only collaborators can access this folder via shared links (checked: For files and Folders)

     

    If anyone has any insight it would be much appreciated.

    0
    Comment actions Permalink
  • iancheckley

    By now is there an answer to the question how to allow people who can access a  folder from a shared link to join as a collaborator?

    0
    Comment actions Permalink
  • michael_schapir

    Looking for it as well. 

    0
    Comment actions Permalink

Please sign in to leave a comment.