This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Creating a XACML Policy

Follow the instructions below to create a XACML policy.

  1. Sign in. Enter your user name and password to log on to the Management Console.
  2. Navigate to theĀ MainĀ menu to access theĀ EntitlementĀ menu. ClickĀ Policy AdministrationĀ underĀ PAP.
  3. Click Add New Entitlement Policy.
  4. The Add New Policy page appears. Select the policy creation method you wish to use.
  5. On the "Create XACML Policy" page, specify the required settings:
    • Simple Policy Editor

      • Entitlement Policy Name - Specify the name of the policy. This field is mandatory.
      • Entitlement Policy Description - Enter a description of the policy.
      • This policy is based on - Select one of Resource, Subject, Environment and Action from the dropdown.
      • Resource which is equals to - Enter a value here.
      • Add Child Resource-Ā 
        • Fill out the name of the child resource.
        • Select either the ageĀ email, role or UserName from the dropdown.
        • Enter the value for the field chosen above.
        • Select either Time, Domain, DateTime or Date from the drop down.
        • Enter the value for the field chosen above.
        • Click the add button.
    • Basic Policy Editor

      • Entitlement Policy Name - Specify the name of the policy. This field is mandatory.
      • Rule Combining Algorithm - Select a rule-combining algorithm from the drop-down menu. The following algorithms are available:
        • Deny Overrides
        • Permit Overrides
        • First Applicable
        • Deny Unless Permit
        • Permit Unless Deny
      • Specify the elements that the policy applies to:
        • Resource Names - Specify the name of a resource.
        • User Attribute - Specify a user attribute.
        • Action Name - Specify an action name.
        • Environment Name - Specify the environment name.
      • Define Entitlement Rules:
        • Rule Name - Specify the role name. This field is mandatory.
        • Rule Effect - Select the rule effect: permit or deny.
        • Resource Names - Specify the resource name.
        • User Attribute - Specify a user attribute.
        • Action Name - Specify the action name.
        • Environment Name - Specify the environment name.
    • Standard Policy Editor

      • Entitlement Policy Name - Specify the name of the policy. This field is mandatory.
      • Rule Combining Algorithm - Select a rule-combining algorithm from the drop-down menu. The following algorithms are available:
        • Deny Overrides
        • Permit Overrides
        • First Applicable
        • Deny Unless Permit
        • Permit Unless Deny
      • Entitlement Policy Description - Enter a description of the policy.
      • Specify the element that the policy applies to and its corresponding value. Choose one of the following elements from the dropdown:
        • Resource Names
        • User Attribute
        • Action Name
        • Environment Name
      • Define Entitlement Rules:
        • Rule Name - Specify the role name. This field is mandatory.
        • Rule Effect - Select the rule effect: permit or deny.
        • Specify the element that the policy applies to and its corresponding value. Choose one of the following elements from the dropdown:
          • Resource Names
          • User Attribute
          • Action Name
          • Environment Name
      • Define Policy Obligation or Advice
    • Policy Set Editor

      • Policy Set Name - Specify the name of the policy set. This field is mandatory.
      • Policy Combining Algorithm - Select a policy-combining algorithm from the drop-down menu. The following algorithms are available:
        • Ordered Permit Overrides
        • Deny Overrides
        • Permit Overrides
        • First Applicable
        • Deny Unless Permit
        • Only One Applicable
        • Ordered Deny Overrides
        • Permit Unless Deny
      • Policy Set Description - Enter a description of the policy set.
      • Specify the element that the policy applies to and its corresponding value. Choose one of the following elements from the dropdown:
        • Resource Names
        • User Attribute
        • Action Name
        • Environment Name
      • Define Policy Obligation or Advice - Add an obligation or advice and either permit or deny an attribute pertaining to it.
      • Define Policy References - Use the search to identify references.
    • Import Existing Policy

      Click Choose File and browse to the location of the policy in your local machine.

    • Write Policy in XML

      Create your own policy in XML.

  6. Click Finish/UploadĀ depending on the option you chose to create your policy.

Ā