Example: Allow procurement buyer administrators to submit the procurement shopping cart for orders created by their organization
By default, procurement shopping cart managers can save or submit procurement shopping carts if they have created the order. In some cases, you might want to divide the responsibility for these tasks. You could allow procurement shopping cart managers to save procurement shopping carts containing orders they have created but give procurement buyer administrators in the same organization as the order creator the authority to submit the procurement shopping cart. This might be beneficial if you want the procurement buyer administrator to review planned purchases before they are submitted.
To make this change, do the following:
- Determine the resource-level policy that authorizes procurement shopping cart managers to center managers to manage fulfillment centers.
- Remove the action for submitting a procurement shopping cart from the policy's action group.
- Define a new action group containing the command for submitting a procurement shopping cart. You will use this action group to define the new resource-level policy that authorizes procurement buyer administrators to submit procurement shopping carts if they are in the same organization as the creator of the order.
- Create a new resource-level policy that authorizes procurement buyer administrators to submit procurement shopping carts if they are in the same organization as the creator of the order.
Identify the resource-level policy's action group and resource group
- Find the resource-level policy that authorizes procurement shopping cart managers to manage procurement shopping carts for orders. The policy is
ProcurementShoppingCartManagersExecuteProcurement ShoppingCartManageOnOrderResource- From the Organization Administration Console, click Access Management > Policies.
- Locate the policy in the list of policies.
- Note the name of its action group -- ProcurementShoppingCartManage. You will update this action group to remove the action for submitting procurement shopping carts.
- Note the name of its resource group -- OrderDataResourceGroup. You will use this resource group to define the new resource-level policy .
Update the resource-level policy's action group
- Click Access Management > Action Groups.
- From the list of action groups, select ProcurementShoppingCartManage.
- Click Change to display the Change Action Group page.
- From the Selected Actions list, select com.ibm.commerce.me.commands.SubmitShoppingCartCmd. You will create a new action group with this action and use the action group in your new resource-level policy.
- Click Remove.
- Click OK.
Define a new action group
- Click Access Management > Action Groups.
- Click New to display the New Action Group page.
- For Name, specify ProcurementShoppingCartSubmit.
- For Display Name, specify a short description of the action group in your local language.
- For Description, specify a longer description of what the action group does, in your local language.
- From the Available Actions list, select com.ibm.commerce.me.commands.SubmitShoppingCartCmd.
- Click Add.
- Click OK.
Define the new policy
- Click Access Management > Policies.
- For View, click Root Organization to display the policies it owns.
- Click New to display the New Policy page.
- For Name, specify
ProcurementBuyerAdministratorsExecuteProcurementShoppingCartSubmitCommands OnOrderResource- For Display Name, specify a short description of the policy in your local language.
- For Description, specify a longer description of what the policy does, in your local language.
- For User Group, click Find and select ProcurementBuyerAdministrators.
- Click OK.
- For Resource Group, select OrderDataResourceGroup.
- For Action Group, select ProcurementShoppingCartSubmit.
- For Relationship, select sameOrganizationalEntityAsCreator.
- For Policy Type, select Groupable Template Policy to designate the policy as a template policy.
- Click OK.
Update the access control policy registry with your change
- Open the Administration Console.
- Click Configuration > Registry.
- From the list of registries, select Access Control Policies.
- Click Update.
Note: After creating the new policy, it has to be assigned to a policy group before it is effective. This is done using XML. See Define access control policy elements using XML for more information.
Related reference
Examples: Customizing access control policies using the Organization Administration Console