Secure > Authorization > Customize default access control policies > Examples: Customizing access control policies using the Organization Administration Console
Example: Removing the ability of contract managers to add or delete attachments to contracts
By default, contract managers for a store can add or delete attachments to contracts they manage. In some cases, you might not want to grant this authority to contract managers.
In this example, we will change a resource-level policy that defines the actions that a contract manager can take.
To remove the authority of contract managers to add or delete attachments to contracts, do the following:
- Determine the resource-level policy that defines the actions that contract managers can take.
- Determine the name of the action group for the policy.
- Delete the actions for adding attachments and deleting attachments from the list of actions in the policy's action group.
Identify the resource-level policy and action group
- Determine the resource-level policy to be changed. The policy is:
ContractManagersForOrgExecuteContractManageCommandsOnContractResource
- From the Organization Administration Console, click Access Management > Policies.
- For View, select Root Organization to display the policies that it owns.
- Locate the policy in the list.
- Note the name of the policy's action group--ContractManage. This is the action group change to remove the actions for adding and deleting attachments.
Remove the actions for adding and deleting attachments from the policy's action group
- Click Access Management > Action Group.
- From the list of action groups, select ContractManage.
- Click Change to display the Change Resource Group page.
- From the Selected Actions list, select the following actions: com.ibm.commerce.contract.commands.ContractAttachmentAddCmd com.ibm.commerce.contract.commands.ContractAttachmentDeleteCmd.
- Click Remove.
- Click OK.
Update the access control policy registry with the changes
- Open the Administration Console.
- Click Configuration > Registry.
- From the list of registries, select Access Control Policies.
- Click Update.