taers232c / GAM-Scripts3

Scripts for use with GAM - Python 3.6+
239 stars 52 forks source link

Error running GetSharedFilePermissions.py #8

Closed seanism closed 2 years ago

seanism commented 2 years ago
➜  IT git:(fix-deprovision) ✗ python3 GetSharedFilePermissions.py filePerms.csv deletePerms.csv
Traceback (most recent call last):
  File "GetSharedFilePermissions.py", line 70, in <module>
    outputCSV.writerow({'Owner': row['owners.0.emailAddress'],
KeyError: 'owners.0.emailAddress'

I get this error when trying to run the Python script.

taers232c commented 2 years ago

Sean,

Send me a Meet/Zoom invitation.

Ross

@.***

On Feb 9, 2022, at 9:41 AM, Sean Young @.***> wrote:

➜ IT git:(fix-deprovision) ✗ python3 GetSharedFilePermissions.py filePerms.csv deletePerms.csv Traceback (most recent call last): File "GetSharedFilePermissions.py", line 70, in outputCSV.writerow({'Owner': row['owners.0.emailAddress'], KeyError: 'owners.0.emailAddress' I get this error when trying to run the Python script.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAM-Scripts3/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL4PTQJEUSDONJQ5JILU2KRNFANCNFSM5N6F463Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.

seanism commented 2 years ago

Resolved. User error with mixing initial gam print command up with another script