Example: Permitting both coupon administrators and Operations Managers to create coupon promotions
By default, coupon administrators for a store can create coupon promotions for their store. In some cases, you might want to grant this authority to Operations Managers as well.
This topic is deprecated and is provided for backward compatibility only.
The flexible design of access control policies offers several methods for implementing this change:
- You can add the Operations Manager role to the access group for the policy that specifies who can create coupon promotions.
- You can create a new policy that permits Operations Managers to create coupon promotions.
This example illustrates the first approach. It shows you how to add the Operations Manager role to the resource-level policy that authorizes coupon administrators to create coupons.
To make this change, you need to do the following:
- Determine the resource-level policy that specifies who can create coupon promotions.
- Change the policy's access group to include users with the
Operations Manager
role. - View the resource-level policy's action group to identify the command for creating coupon promotions.
- Determine the role-based policy for an
Operations Manager
. This policy defines the commands that users with theOperations Manager
role can execute. You must update this policy's resource group to permit coupon administrators to execute the commands for creating coupon promotions. - Update this role-based policy's resource group to include the command for creating coupon promotions.
Identify the action group and access group for the resource-level policy
- Identify the resource-level policy to be changed. The policy is:
CouponAdministratorsForOrgExecuteCouponPromotionCreateCommands OnStoreEntityResource
- From the Organization Administration Console, click Access Management > Policies.
- For View, select Root Organization to display the policies it owns.
- Locate the policy in the list.
- Note the name of the policy's action group--
CouponPromotionCreate
. This is the action group you must view to find the name of the command for creating e-coupon promotions. - Note the name of the policy's access group--
CouponAdministratorsForOrg
. This is the access group you must update to include the coupon administrator role.
Change the access group
- Click Access Management > Access Groups.
- From the list of access groups, select CouponAdministratorsForOrg
- Click Change to display the Details page.
- Click Criteria to display the Criteria page.
- From the Role list, select Operations Manager.
- Click For Organization to specify that the role must be played with the resource's own organization, or its ancestors.
- Click Add.
- Click OK.
Identify the commands for creating coupon promotions
- Click Access Management > Action Groups.
- From the list of action groups, select CouponPromotionCreate.
- Click Change to display the Change Action Group page. Note the name of the command for
creating e-coupon
promotions--
com.ibm.commerce.tools.ecoupon.ECouponPromotionSaveCmd
. You must add this command to the resource group that contains the list of commands an Operations Manager can execute.
Identify the role-based policy for Operations Managers
- Identify the role-based policy for Operations Managers. The policy is:
OperationsManagersExecuteOperations ManagersCmdResourceGroup.
- Click Access Management > Policies.
- For View, select Root Organization to display the site-level policies.
- Locate the policy in the list.
- Note the name of its resource group--
OperationsManagersCmdResourceGroup
. This is the name of the resource group you need to update.
Update the resource group in the role-based policy to include the command for creating coupon promotions
- Click Access Management > Resource Groups.
- Select OperationsManagersCmdResourceGroup.
- Click Change to display the Change Resource Group page.
- Click Next to display the Details page.
- From the Available Resources list, select
com.ibm.commerce.tools.ecoupon.ECouponPromotionSaveCmd
. This is the command for creating coupon promotions. - Click Add.
- Click Finish.
Update the access control policy registry with your changes
- Open the Administration Console.
- Click Configuration > Registry.
- From the list of registries, select Access Control Policies.
- Click Update.