cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

How can I use SDK to update permission

How can I use SDK to update permission

Cotin Yang
Explorer | Level 4

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

Re: How can I use SDK to update permission

Greg-DB
Dropboxer

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

Re: How can I use SDK to update permission

Greg-DB
Dropboxer

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

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?