Google Drive Update Folder Access for 2 emails

Hello,

I’m trying to add 2 reader access in google drive when i create the folder (or later, no matter).
you can see on the picture below, it works well for one email but not for 2

I tried also after the folder creation to add the second email with an api call that i found on this community. i change the community example :
{
“role”: “writer”,
“type”: “user”,
“emailAddress”: “‘validgmailaccount@gmail.com”
}

to this

{
“role”: “reader”,
“type”: “user”,
“emailAddress”: “‘validgmailaccount@gmail.com”
}

but the shared access result is in writer

image

do you have any idea how i can solve this problem ?
thank in advance,

Hi @Nalis_Immobilier ,

Have you tried using the Get a Share link module instead? I think you can only update the folder access 1 per run only so I would suggest aggregating(text) the email addresses first where comma is the separator and then the next module would be the SetVariable, try to use the split function then map the aggregated text the the separator is a comma, this should then turn it into an array, then lastly, add an iterator so that the aggregated emails will be iterated (processed one by one), then map the email address in the email address field:

I hope this helps!

2 Likes