We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
cas_rds
4 days agoHelpful | Level 6
How to add the entire team to team folder by api
Hi,
We have tried to create the team folder and add the entire team but failed. After successfully created team folder by api "https://api.dropboxapi.com/2/team/team_folder/create", we tried to add the entire team with "group_id" to the team folder but failed, the api is " https://api.dropboxapi.com/2/sharing/add_folder_member", the detail information( token and user id is hided):
curl -X POST https://api.dropboxapi.com/2/sharing/add_folder_member \
--header "Authorization: Bearer access_token_hide" \
--header "Dropbox-API-Select-User: dbmid:xxxxxxx_hide" \
--header "Content-Type: application/json" \
--data "{\"custom_message\":\"Documentation for launch day\",\"members\":[{\"access_level\":\"editor\",\"member\":{\".tag\":\"dropbox_id\",\"dropbox_id\":\"g:c858e6f315e1cbf00000000000000299\"}}],\"quiet\":false,\"shared_folder_id\":\"11933718145\"}"
response: {"error_summary": "access_error/not_a_member/", "error": {".tag": "access_error", "access_error": {".tag": "not_a_member"}}, "user_message": {"locale": "en", "text": "You aren\u2019t a member of this shared folder."}}
- iNeilDropbox Engineer
Hello cas_rds
Thank you for raising this case on our Dropbox Community Forum. Based on the cURL command example you provided, it appears that you are encountering the error message, “You aren’t a member of this shared folder,” because you are using the "Dropbox-API-Select-User" HTTP header to execute the endpoint on a team folder with no members.
To resolve this issue, please use the "Dropbox-API-Select-Admin" HTTP header when executing the endpoint. This will allow you to operate on behalf of the team administrator to add the group to the team folder. For further information, please refer to the following link:
https://www.dropbox.com/developers/reference/auth-types- cas_rdsHelpful | Level 6
Hello iNeil,
Thanks for your information!
In order to add all team menber of team space to the team folder, Is there a default group that contains all members? If so, what criteria do we use to distinguish this default group?
- iNeilDropbox Engineer
Hello cas_rds,
All Dropbox Business teams have a default group named “Everyone at [Your Team Name]” that is automatically created when the team account is set up. This group includes all current team members, and new members are added automatically as they join. For more information, please review the following link:
https://help.dropbox.com/account-access/groups
If you need to find the group_id of the “Everyone at [Your Team Name]” group, you can use the Dropbox API endpoints 2/team/groups/list and 2/team/groups/list/continue to list all groups in your team.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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 or Facebook.
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!