-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start-GSDriveFileUpload only writes to domain superadmin drive #136
Comments
Hi! Drive API functions authenticate as the user specified in the Sent with GitHawk |
I've predefined $homepath and am running it like (with a different email obviously): |
hey @dfjmulder - Trying to figure out exactly what the issue is. My understanding of the issue is this (please correct me if I'm wrong!):
Is that an accurate portrayal of what's happening? |
Yes. Thats correct. |
What errors are you seeing?
On Sat, Dec 22, 2018 at 12:16 AM David ***@***.***> wrote:
Yes. Thats correct.
And PSGSuite gives an error per file if I use the wait option. I am
assuming cause it cannot find the files under the correct User. If i do not
use the wait option than it reports like nothing has gone wrong.
And the api in cloudconsole is full of errors.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#136 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMIo3S4lp38vJaHMd-jHYncdBfn3ENlgks5u7c5GgaJpZM4ZfDwZ>
.
--
Thank you for your time, Nate Ferrell (SCRT HQ)
|
hey @dfjmulder - Can you send over the errors you're seeing in both PowerShell and the Developer's Console? Considering you're seeing errors in the Dev Console / Cloud Console, it seems like the parameters that you're trying to pass may not be liked too much on the Google side. I'm not able to replicate any issues on my end when I try to upload as another user in my domain. |
Command given: (username and domain changed)
Powershell error
Repeated for each file. The google Drive API Metrics in console.cloud.google shows 404 errors for the drive.files.create method for the serviceaccount and oauth2 credential thats also in the config file. Im trying to download the error file from the metrics page but this somehow seems to take forever. wille update onces that succeded |
If I create a new folder in his drive than it all works dandy
folder is created no issues |
Thanks for the extra details! Seeing if I can replicate this on my end =] |
👍 |
Looking at your code I do not understand how the functions you call inside this function know the User to send the files to. As the -User parameter does not appear to be handed down to them. |
@dfjmulder you're absolutely right and I was able to validate the same behavior on my end! Validating the fix now, but should have a new version rolled out soon! |
Thats great. Thanks man! |
Can confirm this has fixed it! Thank you for your great work. |
Thanks for confirming! I'm glad you're enjoying PSGSuite! Sent with GitHawk |
Followed the install as on the wiki page.
Am able to read file list from all users drive
When running Start-GSDriveFileUpload there is a drive folder with the users name to the superadmin drive instead of the drive of the user.
update PSGSuite, recreated the project in console to see if I missed any steps...
Please help :-)
The text was updated successfully, but these errors were encountered: