Configuring access to job types for external account holders
By default,
RestV1JobTypesConfigurationPlugin provides external account
holders access to the following jobs types with the Cloud API for PolicyCenter: - Submission
- Renewal
- Policy Change
- Cancellation
You can configure external account holders to have access to additional job types.
Provide account holders access to additional job types
Complete the following steps to provide external account holders access to a
customized list of job types. The examples in this topic provide external account
holders access to the issuance job.
- After reading this topic, you'll be able to:
-
- Create a custom class that extends
RestV1JobTypesConfigurationPluginImpl - Add additional endpoint access for account holders
- Add additional resource access for account holders
- Add additional permissions to proxy user
external_user
- Create a custom class that extends
Instructions
Step 1: Create a custom class that extends
RestV1JobTypesConfigurationPluginImpl
About this task
RestV1JobTypesConfigurationPluginCustomImpl to
configure the types of jobs that external account holders can
access.Procedure
Step 2: Update the endpoint access for account holders
About this task
Procedure
Step 3: Update resource access for account holders
About this task
Procedure
Update the
config/authorization/gw/core/pc/shared/v1/accountholder_ext-1.0.access.yaml
file with the following code:
Issuance:
permissions:
view: __inherit
create: "gw.rest.core.pc.security.v1.AccountHolderSecurityUtil.canAccessPolicy(resource.Parent.Policy)"