cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you want to work on being more organized, your productivity or you want to use AI to make your life easier, we’ve got something for you right here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Shared Folder Limit on Team Account

Shared Folder Limit on Team Account

Akansh Gautam
Explorer | Level 4

Hi Team,
I am working on Team Account for development majorly on sharing folder and shared folders.

 

Code for sharing folder

try:
response = dbx_client.with_path_root(
path_root=pr
).sharing_share_folder(path=f"{path}", force_async=force_async)
if response.is_complete():
return response.get_complete()
return response
except DropboxException as e:
Logger.info(e)

Suddenly this api starts giving error, after some logs i found error (below)

 

re=dbx_client.with_path_root(path_root=pr).sharing_share_folder(path="/AppsTest/Cases/Beta/Demo_")
res res res <dropbox.dropbox_client.RouteErrorResult object at 0x7fa0116a9b80>
Error Log -----, deserialized_result ShareFolderError('other', None)
Error Log -----, user_message_text Your Dropbox account has reached the limit for shared folders.
Error Log -----, user_message_locale en

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/t2b/Documents/tc/venv/lib/python3.8/site-packages/dropbox/base.py", line 4911, in sharing_share_folder
    r = self.request(
  File "/home/t2b/Documents/tc/venv/lib/python3.8/site-packages/dropbox/dropbox_client.py", line 352, in request
    raise ApiError(res.request_id,
dropbox.exceptions.ApiError: ApiError('fbcc140666624171a803aaaed555ffeb', ShareFolderError('other', None))
 
 
After reading some discussion I found that I can create only 1500 shared folder inside a folder and 300000 for overall team account.
 
My questions:
 
1. Does base folder also included in count
example in my root folder the struture is /AppsTest/Cases.....
 
I am creating shared folder inside AppsTest (not able to create now)
 
2. Is there any api for shared folder count or any other workout to get exact number of count of shared folders in side root folder.
 
 
Please reply asap.
 
Thanks and Regards
 
1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff

1. No, the count for this limit is only referring to shared folders, not unshared parent folders.

 

2. The Dropbox API doesn't offer a way to just retrieve the current count with the Python SDK, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You can use sharing_list_folders and sharing_list_folders_continue to list and count shared folders as needed however.

View solution in original post

5 Replies 5

Greg-DB
Dropbox Staff

1. No, the count for this limit is only referring to shared folders, not unshared parent folders.

 

2. The Dropbox API doesn't offer a way to just retrieve the current count with the Python SDK, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You can use sharing_list_folders and sharing_list_folders_continue to list and count shared folders as needed however.

Akansh Gautam
Explorer | Level 4

Hi @Greg-DB thanks for reply

And for the limit in team account is 1500 shared folder for a particular folder and 30K for whole team account?

 

 

thanks and regards

 

Greg-DB
Dropbox Staff

Yes, those are the limits per the help center article.

Akansh Gautam
Explorer | Level 4

Hi @Greg-DB 

 

Thanks for response.

 

I am working on team account and at root I have a folder named AppsTest (It has a shared_folder_id , using files_get_metadata api) so it it a shared folder?

 

In it I have another folder named Cases (AppsTest/Cases), it doesn't have any shared folder id, i.e. it is not shared folder?

 

1. So my first question is shared folder are only those which has shared_folder_id?

 

 

 

2. As you can see in screenshot Cases (no shared_folder_id), Beta (has Shared_folder_id), 2023 (not shared_folder_id) next Discharge has (shared_folder_id)

Screenshot 2023-02-21 at 1.59.28 PM.png

 

so for api limit of 1500 from where count is started?

is it from AppsTest or where?

 

Please reply asap

 

Thanks and Regards

 

 

 

Greg-DB
Dropbox Staff

1. Yes, folders that are not shared folders would not have shared_folder_id set.

2. The "Within a single folder, you can create up to 1,500 shared subfolders" limit applies to the number of shared folders underneath any folder.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Akansh Gautam Explorer | Level 4
What do Dropbox user levels mean?