Question

US
Last activity: 17 Aug 2025 22:51 EDT
Dynamically Changing AG Not Properly Setting Application Context
I have a Pega instance with two applications. App-1 is built on top of App-2. Operators should have access to App-1 and App-2
- App-1 has an AG of App1:AccessGroup and has its own Authentication service rule with custom post processing
- App-2 has an AG of App2:AccessGroup and has its own Authentication service rule with custom post processing
The issue I am having, when an operator has both access groups on their Data-Admin-Operator-ID record. When they are defaulted to App1:AccessGroup and they hit the URL for App-2 authentication service, we are successfully setting the new default access group to App2:AccessGroup but the operator is in the context of App-1 still.
Online I have seen mention of pxUpdateOperratorContext but I cannot find that rule in my Pega instance. I also was trying to figure out to use the SwitchApplication function but cannot find the syntax of how to call it from the function method activity.
In short: Operators will have both AGs, based on the auth service they hit dynamically sets the Default access group and app context. The AG is setting but the application context looks to be set prior to the post auth activity running and is not refreshing.