New file picker method for pre-selecting Google Drive files coming soon

What’s changing 

Today, Google Drive developers rely on the drive.file scope and the Google Picker API to optimize user experience and safety when creating their applications. 
To make it faster and easier for users to provide applications access to specific Drive files, the Google Picker API will introduce a new method to the Class view called setFileIds(fileIds). This method lets application developers present users with a picker that is pre-navigated to the specified file IDs the application is seeking access to, allowing faster consent for your users and a more continuous experience for your application. 

Getting started 

  • Admins: There is no admin control for this feature. 
  • Developers: If you have a user interaction such as a chat interface where a user already provided the FileId that they want to open using your application, you can now provide that FileId via the View class and Google will prompt the user to grant you OAuth access directly to that file or files. 
  • End users: There is no end user setting for this feature. 

Rollout pace

Availability 

  • Available to all Google Workspace customers and Workspace Individual Subscribers 

Resources