Inventory: GCP: View service accounts resource access and privileges

Last updated: April 11, 2025

  1. Run an IAM Assessment first

    If you have not run assessment your data may not show properly

    Make sure you’ve connected P0 to GCP and run at least one IAM Assessment for your organization. This populates P0 with all principals, grants, privileges, and resources.

  2. Open the Inventory page
    In P0, go to Inventory.

    image.png
  3. Set “from” to your project
    Above the search box is the From control. Click it and pick your project.

    image.png
  4. Set “show” to your Resource
    Above the search box is the Show control. Click it and pick Resources this makes the results table list resource nodes (projects, buckets, etc.) instead of principals or grants.

    image.png
  5. Enter your “Where” query
    In the free‑form search bar, type:

    identity:type:"service-agent" resource:
  6. Click graph to change to visualization
    this will change from table to visualization, for better understanding of your identity has access to.

    image.png
  7. Run the search
    Hit Enter or click the search icon. The table below now lists every GCP resource bound by those grants.

    image.png
  8. To view privileges of the service account

    Ensure you change show: Identity in the drop down, as under resource this view will not display.

    To see which specific GCP permissions for a specific identity:

    identity:type:"service-agent" grant:->privilege:

    Ensure you change show: Identity in the drop down, as under resource this view will not display.

    image.png

    Tip: swap in any identity
    You can replace identity:"<ACCOUNT>" with any other principal string—users, groups, service‑agents—to inventory their resource access the same way.