We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Cotin Yang
5 years agoExplorer | Level 4
How can I use SDK to update permission
Hi
We use the Objective-C SDK in our APP. To get all files' metadata and delete some files, we granted the permission "files.content.write" in ours APP. We now want to develop a new feature, which needs the permission "files.content.read".
1. We will add the permission "files.content.read" in Dropbox App Console, will this action affect the existing users?
2. How can we use the SDK to grant "files.content.write" permission for the authorized users?
Best wishes
Cotin Yang
1. No, enabling an additional scope on your app on the App Console does not affect existing users. It just lets your app use that scope in the future. That is, it will be included in the default set of scopes that your app requests if the app doesn't specify particular scopes during the app authorization flow (and allows your app to request that scope, when it does specify the particular scopes). Also, be aware that just enabling a scope on your app via the App Console does not retroactively grant that scope to existing access tokens.
2. With the Objective-C SDK, you can specify which particular scopes you want to request of the user when starting the app authorization flow, via the "scopes" parameter on the "DBScopeRequest", as seen here: https://github.com/dropbox/dropbox-sdk-obj-c#ios-4 .
1 Reply
- Greg-DB5 years ago
Dropbox Community Moderator
1. No, enabling an additional scope on your app on the App Console does not affect existing users. It just lets your app use that scope in the future. That is, it will be included in the default set of scopes that your app requests if the app doesn't specify particular scopes during the app authorization flow (and allows your app to request that scope, when it does specify the particular scopes). Also, be aware that just enabling a scope on your app via the App Console does not retroactively grant that scope to existing access tokens.
2. With the Objective-C SDK, you can specify which particular scopes you want to request of the user when starting the app authorization flow, via the "scopes" parameter on the "DBScopeRequest", as seen here: https://github.com/dropbox/dropbox-sdk-obj-c#ios-4 .
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,035 PostsLatest Activity: 2 hours ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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!