Enabling a Search Term Manager to access the Catalogs tool
In this lesson, you add the Search Term Manager role to existing user groups so that a user with that role can access the Catalogs tool.
About this task
The
ApplicationMenuItems.xml definition file includes the definitions for all
Management Center menu options. To view the file in your development environment, complete the
following steps:
- Open IBM WebSphere Commerce Developer.
- In the Enterprise Explorer view, expand
- Open the ApplicationMenuItems.xml file to review its contents.
- CatalogGroupViewersForOrg
- The user group
CatalogGroupViewersForOrg
is associated with theIBM_ViewCatalogTool
usage. This usage allows users to access the Catalogs tool and load most business objects except for attribute dictionary objects. TheCatalogGroupViewersForOrg
definition resembles the following code in the ApplicationMenuItems.xml file.<ApplicationMenuItem actionName="openBusinessObjectEditor" displayName="${shellResources.catalogManagementDisplayName}" id="catalogManagement" package="cmc/shell" toolDefinition="cmc/catalog/CatalogManagement" usage="IBM_ViewCatalogTool"/>
- WorkspaceToolUsersForOrg
- The user group
WorkspaceToolUsersForOrg
is associated with theIBM_WorkspaceManagementTool
usage and allows users to access the Workspace Management tool. TheWorkspaceToolUsersForOrg
definition resembles the following code in the ApplicationMenuItems.xml file.<ApplicationMenuItem actionName="openBusinessObjectEditor" displayName="${shellResources.workspaceManagementDisplayName}" id="workspaceManagement" package="cmc/shell" toolDefinition="cmc/workspace/WorkspaceManagement" usage="IBM_WorkspaceManagementTool"/>
To add support for allowing users with the Search Term Manager role to manager
attribute dictionary objects, you also need to add the user to the following user group.
- AttributeDictionaryViewersForOrg
- The user group
AttributeDictionaryViewersForOrg
allows users to load attribute dictionary objects. TheAttributeDictionaryViewersForOrg
definition is not a tool definition and is instead included within the CatalogAccessControlPolicies.xml access control definition file. The code that definies this user group resembles the following code.
To view the CatalogAccessControlPolicies.xml file in your development environment, complete the following steps:<Action CommandName="GetAttributeDictionary.IBM_Admin_Summary" Name="GetAttributeDictionary.Summary"/> ... <ActionGroup Name="Catalog-AttributeDictionary-AttributeDictionaryViewers-AccessProfileActionGroup" OwnerID="RootOrganization"> ... <ActionGroupAction Name="GetAttributeDictionary.Details"/> <ActionGroupAction Name="GetAttributeDictionary.Summary"/> <ActionGroupAction Name="GetAttributeDictionary.All"/> ... </ActionGroup> ... <Policy Name="Catalog-AttributeDictionary-AttributeDictionaryViewers-AccessProfilePolicy" OwnerID="RootOrganization" UserGroup="
AttributeDictionaryViewersForOrg
" ActionGroupName="Catalog-AttributeDictionary-AttributeDictionaryViewers-AccessProfileActionGroup
" ResourceGroupName="AccessProfileResourceGroup" PolicyType="groupableTemplate"/>- In a file manager utility, browse to the WCDE_installdir\xml\policies\xml directory.
- Open the CatalogAccessControlPolicies.xml file to review its contents.
Procedure
To add the Search Term Manager role to user groups:
- Open the Organization Administration Console.
- Select .
- In the View menu, select Access Groups.
-
Add the role to CatalogGroupViewersForOrg user group.
- Under the Name field, locate and click CatalogGroupViewersForOrg. The user group details pages displays.
- Click Criteria. The Criteria page displays.
- In the Select Organization menu, select Root Organization because the Search Term Manager plays a role on this organization.
- In the Select Role menu, select Search Term Manager.
- Select the check box beside For organization.
- Click Add. The Search Term Manager role is added to the Selected roles and organizations list.
- Click OK to save the changes.
-
Add the role to AttributeDictionaryViewersForOrg user group.
- Under the Name field, locate and click AttributeDictionaryViewersForOrg. The user group details page displays.
- Repeat steps 4b-4g.
-
Add the role to WorkspaceToolUsersForOrg user group.
- Under the Name field, locate and click WorkspaceToolUsersForOrg. The user group details page displays.
- Repeat steps 4b-4g.