Using Approvals with OnConsumerRegistration Events
The OnConsumerRegistration event occurs when the user submits the consumer registration request.
The enhanced feature enables users to register users and/or applications as consumers of an asset without explicitly creating a consumer-registration policy and without requiring the owner of the asset to review and accept the registration request.
If you want to impose an approval process, that is, you want designated individuals to review and approve the registration request, you might create a design-time policy with one of the CentraSite's built-in approval actions for the OnConsumerRegistration event. At a minimum, this policy must include the Register Consumer action, because this action performs the work of actually registering a consumer (that is, it establishes the actual relationship between the asset and the specified consumers). It can optionally include other actions, such as Set Consumer Permission action, as needed.
The following procedure describes the general steps you use to create a consumer-registration policy that includes an approval action.
1. Create a design/change-time policy with the following scope:
Event Type: OnConsumerRegistration
Object Type: Asset (of any type)
2. On the policy's Actions tab, add the following actions. Make sure the approval action precedes the Register Consumer action.
Initiate Approval —OR— Initiate Group-dependent Approval
Register Consumer
4. Insert additional actions before and/or after this pair of actions as necessary.
The following example shows an action list that obtains the required approval, executes the registration process, and then grants instance-level permissions to the consumers that the policy registers.
Initiate Approval
Register Consumer
Set Consumer Permission