Implementing access control for version services

The content version service operates on all the nouns that are enabled for versioning.To allow your Object Manager to create, restore, delete, change, and display versions of your custom objects, you must define an action, an action group, a resource group, and a policy.

Before you begin

  • Open the sample content version access control policy file located in WCDE_installdir\components\foundation\xml\policies\xml\ContentAccessControlPolicies.xml for reference purposes.

Procedure

  1. Review the access control policy in the following topic: Content versioning access control.
  2. Define the content version access control profile.
    1. Create your access control policy file. For example, accesscontrol_filename.xml; where accesscontrol_filename.xml is the name of the policy file.
    2. Edit your access control policy file located in the WCDE_installdir\xml\policies\xml\ directory.
    3. Define an action, an action group, a resource group, and a policy for the content version services.
    4. Save the changes.
  3. Update the target database information (see Step 3 of acpload utility).
  4. Stop the HCL Commerce test server.
  5. From the command prompt, navigate to WCDE_installdir\bin.
    • Run the command: acpload WCDE_installdir\accesscontrol_filename.xml; where accesscontrol_filename.xml is the name of your access control policy file.