Even when the user grants permissions in the normal way, things may not work as expected if the G-Suite administrator hasn't allowed the appropriate access for third-party apps.
Here are a couple of Google support links explaining how admins can allow apps Drive SDK access, which is what's required:
https://support.google.com/a/answer/610 ... ic=6097537
https://support.google.com/a/answer/7281227?hl=en