I'm trying to get an authenticated user's Google Cloud project role through the PHP Google Cloud API.
I have looked through the Google Cloud Accounts API, the Google IAM API, and the oAuth API, but haven't found an endpoint that responds with the required information.
I would like to receive a response via the following: I have authenticated to Google via oAuth. I submit a project id (ie. my-test-project) to the endpoint and if I have access to a project by that name, it tells me what my role is in that project (owner, editor, viewer, or other IAM role).