
Team Folders and Spaces are the best way to organize and control content that belongs to the organization and not to specific users.ĭetermining the Team's Organizational Model
#DROPBOX DEVELOPER VIEW DOC HOW TO#
Read more about how to use these headers in our Authentication Types Guide. While most user-linked applications will prefer referring to files by id or relative path, team linked applications looking to efficiently traverse all team-owned content will tend to find namespace-relative paths simpler. Remember, files can be r eferred to in path arguments by their relative path, file id, revision id, or by a namespace-relative path. Using the /team/namespaces/list call to enumerate all team namespaces, then traversing them with /files/list_folder with the Dropbox-API-Select-Admin header enables an app to efficiently enumerate all team content.

When reading content and metadata, using Select-Admin enables the caller to see any team accessible content - without needing to determine which user on the team has view access. Select-Admin is required when making modifications to team-managed Team Folders & Team spaces using sharing API calls, as described in the next section.

This header, when used with a team token, enables the application to issue calls as the specified team administrator. This enables applications to organize and act on content within users member folders. This header, when used with a team token, enables the application to issue calls on behalf of the specified team member. Apps using the legacy permission model must instead select the access type of ‘Team member file access’. These applications may also use any authorized Use r API calls to operate on behalf of members of the team by specifying the member ID in an HTTP header as long as the application has the team_mber scope. The Business API enables team administrators to both manage company owned spaces, as well as to manage the content of individual team members.Īpplications that authorize team scopes receive a team-linked token for operating on Business API endpoints. So far we have covered accessing content in company managed spaces with the Use r API. If her team uses Team Folders, we'd get a response like this: In the example above, let's call this endpoint with Sarah's user ID. This is done with the endpoint /users/get_current_account. In order to access files on users’ namespaces, first you need to retrieve the namespace IDs from the API. To root a call to a specific namespace, a caller would need to identify that namespace and indicate it as a target root, as described in the sections below. Data that John does not have permissions for, like Sarah’s folder (1), would not be visible or accessible. This would allow the app to access content accessible to and authorized by John - which would include the member folder and other folders he has access to in the team space. Thus if a caller wished to access the Team Space, they would need to root their calls to the Acme Dropbox (7). If the team uses Team Spaces, this would not include the Marketing Folder (4) within the team space - as it rooted to the Acme Dropbox (7). If John’s team uses Team Folders, this would include the Marketing Team Folder (4) he has access to.

#DROPBOX DEVELOPER VIEW DOC FULL#
In the example image above, if a Full Dropbox app authorized by John executed /files/list_folder - it would be relative to namespace (6), and allow traversal content within that namespace. For an application with Full Dropbox access, the call is rooted to the team member’s folder by default. When you issue calls with the Dropbox API, the API calls that reference a specific file’s path are limited to the permissions authorized by the access token and relative to the namespace that the call is rooted to.įor an application with App Folder access, the call is rooted to a folder within the team member’s folder. Other than the new Namespace ID added to the Acme Dropbox folder, all other namespace IDs are unchanged."Marketing (4)" is a share under the Acme Dropbox team root folder, rather than a team folder mounted to member folders.The Acme Dropbox team root folder is a parent of both Sarah and John's home Dropbox Folders with namespace ID (7).
