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:
policyTagsidentitiestargetCategorystatuslocationType
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 /policiesincludes 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:
- Call
GET /policiesto retrieve the list of policies. - From the response, identify the policy whose name matches what you’re looking for.
- Note the corresponding policyId.
- 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
Where can I find the official API documentation?
- Access Control Policies API (Swagger): https://api-docs.cyberark.com/uap-schema-api/docs/access-control-policies-api
- Get policy by ID: https://api-docs.cyberark.com/uap-schema-api/docs/access-control-policies-api#/default/get-policy