cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

Re: How can I use SDK to update permission

How can I use SDK to update permission

Cotin Yang
Explorer | Level 4
Go to solution

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 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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 .

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

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 .

Need more support?