Posted: 1 Dec 2017 8:58 EST Last activity: 13 Dec 2017 4:17 EST
Pega REST API : how to chose your application if your user has access to more than one application ?
I want to use PEGA REST API to retrieve some data (/data/D_pyDataflowRuns). The user i'm using has access to 2 applications : AppA, AppB, and its default access group is on AppA. The data i want to get from the REST service call is the data from AppB. How can I achieve this ? Is there a way to chose the access group to be used for the service execution ?
The access group to be used for service execution would be defined in the service package where the rest service resides. In the Context tab of the service package, there is a provision to provide the access group. Pega uses this access group for rule resolution while executing the service.
Now coming to your scenario, I understand the REST service is hosted in App B. I don't think this would stop you from using a Connect-REST connector in App A and retrieve the data as far as you provide the correct Authentication Profile (Not required if the REST service hosted in App B doesn't need Authentication).