Hi All,
We've a process which is started via webAPI and has a node which uses QueryProcessAnalytics to query the process report to get a few details. This node where it fetches the data from Process Report is not working/not returning results when running the node as the same user as process initiator(in this case , service account used by webAPI), however, it works fine when changing to execute as user (process designer). We checked the security of the process reports and the parent folder and it has the service account group with Viewer permission. The only difference we see is the service account is basic user and the process designer user is system administrator. Any pointers to why query process analytics is not working when called via webAPI with a service account?
Discussion posts and replies are publicly visible
By any chance, have you used loggedInUser() anywhere in your script task or expression rule? Appian returns Appian Administrator when we use this function inside a process. If yes, then you will have to create an Ri and pass pp!initiator in that variable.
Hi Harshit, Thanks for reply, we've not used loggedInuser in the script task, the script task only contains rule GBL_queryProcessAnalytics with the query parameter input and no user id is passed explicitly while invoking the rule.