Ensure that Asset Inventory service is enabled for the project.
GCP Cloud Asset Inventory enables security analysis, resource change tracking, and compliance auditing for GCP resources and IAM policies.
Enable Asset Inventory service for the GCP project.