I am trying to use Google Apps Script to create Shared links. I have been able to work most of the functinality I require, incl. running "sharing/list_shared_links".
My folder is a Team folder. Here are the important parts of "sharing/get_folder_metadata reads". At the moment I only have one file inside this folder.
"access_type": {
".tag": "editor"
},
"is_inside_team_folder": true,
"is_team_folder": false,
"policy": {
"member_policy": {
".tag": "anyone"
},
"resolved_member_policy": {
".tag": "anyone"
},
"acl_update_policy": {
".tag": "editors"
},
"shared_link_policy": {
".tag": "anyone"
},
"viewer_info_policy": {
".tag": "enabled"
}
}
If I try and use "create_shared_link_with_settings" I get a 500 error. At the same time, if I use the Dropbox Interface to create a View/Edit link to the file, I can use "list_shared_links" to get the link to that file.
If I authorise another member of the team to pull "list_shared_links", they don't see the link I created using the interface. And they surely cannot use "create_shared_link_with_settings".
Am I missing something critical here.