Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Accessing the System User workflow-process-service through Java


Level 2

Hi all,

I have an custom location /etc/myproject wth acl policies setup which has allow for administartors, myprojgroup and deny for everyone.

In the workflow I had to remove some of the ACL policies set for the custom location   /etc/myproject using the workflow session in the custom process step.

Since I was getting Access Denied since workflow-process-service had no access to the  /etc/myproject.

Hence I had to give the permission on the custom location /etc/myproject. in java code

Principal wfGroupPrincipal = pMgr.getPrincipal("workflow-process-service");

if (null != wfGroupPrincipal ) {

AccessControlUtils.addAccessControlEntry(session, dataEntry.getPath(), wfGroupPrincipal ,

privileges, true);


But this returns null Principal wfGroupPrincipal = pMgr.getPrincipal("workflow-process-service");

Please let me know on how to set permission on the system user.



0 Replies