This Mule 4 custom policy implementation demonstrates if different Business Groups have different OAuth requirements since the Anypoint platform provided Oauth external identity provider configuation is only possible to set at the Organisation level.
This example is implemeted based on the below blog post.
https://platform.deloitte.com.au/articles/oauth-for-your-business-group-in-anypoint-platform
Note: To build and deploy this example, you must have MuleSoft Enterprise nexus repository credentils to be configured in '.m2/settings.xml' file.
Custom Policies https://docs.mulesoft.com/api-manager/2.x/policies-custom-landing-page
Configure OpenID Connect Client Management https://docs.mulesoft.com/access-management/configure-client-management-openid-task
Getting started with Custom Policies development https://docs.mulesoft.com/api-manager/2.x/custom-policy-getting-started
Uploading a Custom Policy to Exchange https://docs.mulesoft.com/api-manager/2.x/custom-policy-uploading-to-exchange