Create a user group for write access to business objects

In this lesson, you create a user group that contains all the roles that can have write access to the business objects. Within this new ExtSearchTermAsociationManagersForOrg user group, you specify that the Category Manager, Product Manager, Seller, Marketing Manager, and Search Term Manager roles can manage search term associations.

Procedure

  1. In a file manager utility, browse to the WCDE_installdir\xml\policies\xml directory.
  2. Within this directory, create a file and name the file extACUserGroups_en_US.xml. You use this file as a the custom user group configuration file for the user group that you are defining.
  3. Open the new file for editing.
  4. Copy and paste the following code into your new extACUserGroups_en_US.xml file.
    
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UserGroups SYSTEM "../dtd/ACUserGroups.dtd">
    
    <UserGroups LanguageID="en_US">
        <UserGroup Name="ExtSearchTermAssociationManagersForOrg" OwnerID="RootOrganization" 
         Description="Users who can manage search term associations for the organization">
          <UserCondition><![CDATA[
              <profile>
               <orListCondition>
        
                <simpleCondition>
                  <variable name="role"/>
                  <operator name="="/>
                  <value data="Category Manager"/>
                 <qualifier name="org" data="OrgAndAncestorOrgs"/>
        
                </simpleCondition>
                <simpleCondition>
                  <variable name="role"/>
                  <operator name="="/>
                  <value data="Product Manager"/>
                 <qualifier name="org" data="OrgAndAncestorOrgs"/>
                </simpleCondition>
        
                <simpleCondition>
                  <variable name="role"/>
                  <operator name="="/>
                  <value data="Seller"/>
                 <qualifier name="org" data="OrgAndAncestorOrgs"/>
                </simpleCondition>
        
                <simpleCondition>
                  <variable name="role"/>
                  <operator name="="/>
                  <value data="Marketing Manager"/>
                 <qualifier name="org" data="OrgAndAncestorOrgs"/>
                </simpleCondition>
                
                <simpleCondition>
                  <variable name="role"/>
                  <operator name="="/>
                  <value data="Search Term Manager"/>
                 <qualifier name="org" data="OrgAndAncestorOrgs"/>
                </simpleCondition>
        
               </orListCondition>
            </profile>
         ]]></UserCondition>
        </UserGroup>   
    </UserGroups>   
  5. Update the target database information (see Step 3 of acpload utility).
  6. Save and close the file.
  7. Stop your HCL Commerce Test Server.
  8. In a command line utility, go to the WCDE_installdir\bin directory. Run the following command to load your new user group.

    acugload WCDE_installdir\xml\policies\xml\extACUserGroups_en_US.xml

Results

Your new user group is loaded. The Category Manager, Product Manager, Seller, Marketing Manager, and Search Term Manager can manage search term associations.