
hzc3f (hzc3f) asked a question.
Hello,
As a part of our off-boarding process I am trying to create a flow that will only transfer files that have been shared. The "Create transfer request" Drive option in workflow only allows you to send all files.
Is there any way to transfer Google Drive files that meet a criteria such as "Shared"?
The "Search Files" Google drive function only seems to search for files within the Drive of the user that setup the connection.
Any help or advice is greatly appreciated!
Thanks,
Jesse

Hi Jesse, I know this may sound a bit like a cop out but this is really a question for Google. The question you are asking is:
Using Google's available API for Drive is there any way to transfer Google Drive files that meet a criteria such as "Shared"?
With Workflows you can leverage "Custom API Action" on the Drive card to hit any of the available endpoints. Assuming what you are attempting to actually do is possible with the API it then should be possible to do with Workflows.
So for example: If there is a way to list all of the files, and those files have some sort of "meta data" that lets you determine if they are "shared". You could potentially do logic to iterate all of the files, move the files you want to move. Here is an example of the Custom API Endpoint (It uses a relative URL, https://www.googleapis.com/drive is already assumed as part of the URL)
Hi Tom,
I know it is possible via Google's API, but there is no Custom API Action for Data Transfers on Okta flow. Using the Google Drive Custom API action appends the relative URL with: "googleapis.com/admin/drive"
When the URL should be: googleapis.com/admin/datatransfer
Thanks,
Jesse
Hello @TimL.58332 (Workflows)
I hope you are having a great day
Thank you for posting, unfortunately, the documentation does not include the "shared" criteria as you can confirm in the link below:
https://help.okta.com/wf/en-us/Content/Topics/Workflows/connector-reference/googledrive/googledrive.htm?cshid=ext-googledrive
We are continually hoping to provide the best customer experience, so perhaps you would like to share your use case to implement this functionality in a future release. The best method for getting our Product Managers’ attention is to submit an idea to the community site. Once ideas are submitted, they are visible to other Okta admins, who can vote on them to provide more visibility and allow you to monitor the potential for future enhancements.
To Create an Idea:
1. Go to https://ideas.okta.com/
2. Enter your Okta tenant name and click "Go" (if necessary)
3. Sign in and search the Ideas page for existing feature requests to upvote, or click “Make a suggestion” to submit your own
4. Encourage the other admins in your org to upvote the idea as wel
lhttps://support.okta.com/help/s/article/Okta-Ideas-Overview-FAQ
If you need further assistance you can also feel free to post this question on our Okta Developer Forums: https://devforum.okta.com, this is a place for the Okta developer community to interact.
Have a great day ahead
Henry E.
Okta Inc
Hi Jesse,
It looks like due to the "relative url" you cannot gain access to the endpoint you want even leveraging Custom API Action. The "Drive" card with the correct scopes is accessing the "Drive V3" API endpoint. The one you want to access is "Admin Data Transfer V1" API.
What you can potentially do is outlined in this earlier post (Solution by Phillip):
https://support.okta.com/help/s/question/0D54z00006v9Z9b/okta-workflows-http-card-oauth20-connection-access-token-expiring?language=en_US
You could create a refresh token with the required scopes, build it into a flow to generate an access token, then and perform the actions you wish to perform against the specific API endpoint.
Hi Tom,
Just successfully created a flow for this using the API Connector and generating an access token from Google.
Thanks for all the help!
Jesse