I have a GCP project with an App Engine app resource. I use Identity-Aware Proxy to set users and roles on the App Engine app in the console. I now want to manage users in IAP programmatically.
Currently, I am able to get the IAM policy for "All Web Services" included in the project, using:
const request = {
resource_: <project-id>,
resource: {},
auth: authClient
};
try {
const response(await cloudresourcemanager.projects.getIamPolicy(request)).data
} ...
How do I get the specific policy for the App Engine app resource?
I prefer to specify the policy directly on the app resource, and not on "All Web Services".
See GCP IAP screenshot for details: Policy for App Engine app on GCP IAP