Closed ianhyzy closed 2 years ago
I tried reproduce this, but it's returning a number in my test account. What edition of G Suite are you using?
All users on the target domain have Enterprise.
Apologies, I should have mentioned this earlier - I was running this script inside of app maker and made sure I had all the advanced services turned on, so I assumed it wouldn't matter - but this script works fine on scripts.google.com for me, just not as an AM server script. I was under the impression that server scripts were the same as appscripts and I' wondering why only this one component seems to be affected by this?
I had all these services enabled on the project in case one of them was the issue:
Ah, that's very useful information, thanks for confirming. And both times the code is run as the same user, who is a super admin in the G Suite organization?
Both times the code is run from the same superadmin account, right.
Closing since this seems to be specific to app maker which is no longer available.
Expected Behavior
generateUserUsageReport should tell me how many new Docs a user made in the last week.
Actual Behavior
Right now, it returns "undefined".
Steps to Reproduce the Problem