Skip to main content
Question

Error in API call to list custom detection rules

  • January 1, 2026
  • 1 reply
  • 37 views

Forum|alt.badge.img+10

Hello,

 

I am getting below error for API call to list custom detection rules:
 

Querying URL: https://backstory.googleapis.com/v2/detect/rules?page_size=2000{'error': {'code': 403, 'message': 'The caller does not have permission', 'status': 'PERMISSION_DENIED'}}object of type 'NoneType' has no len()

 

I validated and the permissions seems good for service account (Chronicle API Admin). 

 

Any guidance, examples, or best practices would be really helpful.
Thanks in advance!

 

Thanks,

Suraj

1 reply

James_E
Staff
Forum|alt.badge.img+8
  • Staff
  • January 2, 2026

Hello,

 

I am getting below error for API call to list custom detection rules:
 

Querying URL: https://backstory.googleapis.com/v2/detect/rules?page_size=2000{'error': {'code': 403, 'message': 'The caller does not have permission', 'status': 'PERMISSION_DENIED'}}object of type 'NoneType' has no len()

 

I validated and the permissions seems good for service account (Chronicle API Admin). 

 

Any guidance, examples, or best practices would be really helpful.
Thanks in advance!

 

Thanks,

Suraj

The most likely problem is using the Backstory API URL with the Service Account created in your GCP project.

 

Use this URL instead, where ‘parent’ is ‘projects/{project}/locations/{location}/instances/{instance}’. It is outlined in the docs here. Use the same Service Account with Chronicle API Admin.

https://chronicle.us.rep.googleapis.com/v1alpha/{parent}/rules