Setting up role-based access to documents.
Roles govern HTTP access to the REST API endpoints in DreamFactory. When you set up access to a file storage system in the 'Services' tab, no files are accessible by default (unless you are a DreamFactory Admin).
You can give access to a file repository by following the example below. Note that the example below works the same for each supported file system (local files, S3, OpenStack, and Rackspace)
Example - Enable HTTP access to an S3 container for a role.
- 1. Log into the DreamFactory admin console as an Admin.
- 2. Click on 'Roles' > 'Create'.
- 3. In the 'Access' tab, select your desired S3 container for 'Service' (this is an S3 container you've connected to in the 'Services' tab), * for 'Component' (* simply denotes access to all folder and files in the the container), HTTP verbs for 'Access', and API for 'Requestor'.