Retrieving google drive item shares and permissions (in R)

Google drive is a great tool, specifically we’ve been using “G Suite” (the equivalent of google drive but for businesses), for a long time. Lately I noticed it’s missing an important feature - monitoring file shares and permission of google drive items across organization is non-trival (at least in the G suite basic subscription). I wanted to get a better sense of how my files and folders are shared across users within and outside the organization.