List the assigned targets

GET /access/policies/{accessPolicyId}/targets

Finds all of the resources that are assigned targets of this access policy. The targets are returned as references which identify resources that are bestowed the grants and revokes indicated by the policy. The targets are generally Users, Groups or Teams.

This method supports pagination.

Parameters

Name Required Type Description
accessPolicyId true string the ID of the access policy
sort false object Defines how to sort fields in the result set
skip false number Skips the result set cursor ahead the specified number of records
limit false number Specifies the number of records to be handed back in the result set

Response

"type": "object", "description": "Result Map", "properties": { "total_rows": { "type": "number" }, "offset": { "type": "number" }, "size": { "type": "number" }, "rows": { "type": "array", "items": { "type": "accessPolicy" } } } }

Examples

Example 1

In this sample, we want to find all of the targets for a policy with ID POLICY_ID.

Request

GET /access/policies/POLICY_ID/targets

Response

{ "offset": 0, "size": 3, "total_rows": 3, "rows": [{ ... user object }, { ... group object }, { ... team object }] }