SCA/ACP - Can I filter policies by policy name using the GET /policies API?

SCA/ACP - Can I filter policies by policy name using the GET /policies API?

91
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:59 PM


Question


Can I filter policies by policy name using the GET /policies API?



Environment


Secure Cloud Access (SCA) SCA UI

Answer


No. The Access Control Policies API does not support filtering by policy name when calling:

GET https://{tenant_subdomain}.uap.cyberark.cloud/api/policies

Filtering is supported only on a limited set of fields, and policy name is not one of them.


Which filter fields are supported for GET /policies?

The API supports filtering only on the following fields:

  • policyTags
  • identities
  • targetCategory
  • status
  • locationType

Filters using other fields (including policy name) are not supported and will be ignored or fail.


Can I filter policies by policy ID?

Not directly via the filter parameter. However:

  • Each policy returned by GET /policies includes a policyId
  • You can retrieve a specific policy by ID using a dedicated endpoint (see below)

How can I find a policy if I only know its name?

Use this recommended approach:

  1. Call GET /policies to retrieve the list of policies.
  2. From the response, identify the policy whose name matches what you’re looking for.
  3. Note the corresponding policyId.
  4. Retrieve full details for that policy using:
    GET https://{tenant_subdomain}.uap.cyberark.cloud/api/policies/{policyId}
    

This is the supported way to work with policies when you need to locate them by name.


Is there another API that supports filtering by policy name?

No. At this time, there is no API in the Access Control Policies (UAP) family that supports server‑side filtering by policy name.

If you need name‑based queries, this must be handled client‑side after retrieving the policies list.


Example: Filtering with supported fields

 
GET https://{tenant_subdomain}.uap.cyberark.cloud/api/policies?filter=
(
(policyTags eq 'prod') and
(targetCategory eq 'VM') and
(status eq 'active')
)
 
 

Where can I find the official API documentation?



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj000000183ZCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail