1

I am having issues when trying to add group to a team folder using the Dropbox API v2. I am trying to add group to team folder using the 2/sharing/add_folder_member route

I am sending the request with this body:

{
  "shared_folder_id": :team_folder_id,
  "members": [
    {
      "member": {
        ".tag": "dropbox_id",
        "dropbox_id": :group_id
      },
      "access_level": {
        ".tag": "editor"
      }
    }
  ]
}

, and headers:

Authorization [Bearer :team_member_file_access_token], 
Dropbox-API-Select-User [:business_account_owner_team_member_id]

The provided user in the headers is member of the group. Because adding user to a group is async operation, I am waiting until the job is complete before sending request to add group to a team folder.

This API call was working fine before, but since the last week always gives access_error - not_a_member error.

Is there a bug with Dropbox, or is there a new way to preform this action?

1

1 Answer 1

1

It turns out that Dropbox has a change in team member file access. Changing the header Dropbox-API-Select-User to Dropbox-API-Select-Admin fixed the problem. https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.