Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

J_Matsumoto's avatar
J_Matsumoto
Explorer | Level 4
8 years ago
Solved

Changing team folder setting with pyhon module

Hi All. I want to set team folder using python module. Team folder creation is complete However, I do not know the setting method below in the setting of the team folder Who can manage access...
  • Greg-DB's avatar
    8 years ago

    You can use the sharing_update_folder_policy method to change the settings of a team folder. 

     

    Assuming you're using a Business API member file access app with the Python SDK, that would look like:

     

    import dropbox
    
    TEAM_ACCESS_TOKEN = "..."
    MEMBER_ID = "..."
    TEAM_FOLDER_ID = "..."
    
    dbx_team = dropbox.DropboxTeam(TEAM_ACCESS_TOKEN)
    dbx_user = dbx_team.as_user(MEMBER_ID)
    
    res = dbx_user.sharing_update_folder_policy(TEAM_FOLDER_ID, acl_update_policy=dropbox.sharing.AclUpdatePolicy.owner, shared_link_policy=dropbox.sharing.SharedLinkPolicy.members)
    print(res)
    

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!