You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

sfox's avatar
sfox
Explorer | Level 3
8 years ago

Sharing folders via API with outside email address

Using the Python SDK. I am creating a shared folder and would like to invite someone to collaborate on the folder and I only have the email address.   We are on Dropbox Plus and it is not a team ac...
  • Greg-DB's avatar
    8 years ago

    When using sharing_add_folder_member, you specify the people to invite via the 'members' parameter, which expects a list of AddMember. (Apologies the type isn't more clearly shown there. We'll make a note of that.)

     

    So, you can invite someone to a shared folder using the Python SDK like this:

     

    member_selector = dropbox.sharing.MemberSelector.email("user@example.com")
    add_member =  dropbox.sharing.AddMember(member_selector)
    members = [add_member] # this can contain more than one member to add
    
    res = dbx.sharing_add_folder_member(shared_folder_id, members)

    Hope this helps!