How to check the permissions required to view a page in Google Cloud Platform

Problem

How can you to check the permissions required to view a page in Google Cloud Platform console?

Environment

  • Cloud Console

Solution

Follow the below steps in order to check the permissions required to view a page in Google Cloud Platform.
Below is an example for permissions required to view the Activity page:

  1. Navigate to the activity page and right click on the page. Go to Inspect or Developer tools.
  2. Once the inspect panel pops up, navigate to the network panel and filter for testIampermissions.
  3. Click testIamPermissions?resource_type=0 and under the Response tab you can see the value of permissions.

For activity page, you can see that the value of permissions as

  • cloudnotifications.activities.list
  • logging.logEntries.list
  • logging.privateLogEntries.list

These are the permissions required to view the activity page and the you can create a custom role with the above permissions.