Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.86 KB

New-CaplPolicy.md

File metadata and controls

23 lines (17 loc) · 1.86 KB

New-CaplPolicy Cmdlet

Back

Returns a CAPL AuthorizationPolicy object.

Parameter Optional Description
PolicyID N The unique identifier of the policy as a URI.
EvaluationExpression N One of Rule, LogicalOr, or LogicalAnd objects.
Transforms Y An optional array of 1 or more Transform objects
Delegation Y An optional Boolean that indicates whether policy will evaluation claims by constrained delegation, i.e., the secondary set of claims associated with the security token. The default value is false.

Example

$policyId = “http://skunklab.io/policy/test”

$policy = New-CaplPolicy -PolicyID $policyId -EvaluationExpression $rule  

Management API