Search resources that can be added to an access policy
GET/api/v1/AccessControlPolicy/SearchResourceCandidates/:accessPolicyId
Lists the resources and resource groups that are not yet part of an access policy and can be added to it. Secret vaults and entries on the Active Directory platform are not included. Use it to build a resource picker, with paging, sorting and text filtering. For a custom-role user, the results are limited to the resources their role allows.
Permission required: Administrator, or a custom role with the Access Policies permission on this policy.
Values for entityType: 0 = Resource, 1 = ResourceGroup, 2 = SecretVault.
Request
Responses
- 200
- 400
- 401
- 403
A page of resources and resource groups, with the total number of matches.
The access policy id is empty.
Returned to a custom-role user who is not allowed to work with this policy.
The caller is not an administrator and has no access-policy custom role.