Only users with admin privileges can authenticate on behalf of another user

I received the following error when the Primavera P6 connector tries to fetch the processes from  Oracle BPM 12C server. P6 uses the BPM client jar files to connect and read the process from Oracle BPM suite. 

BPM Error in the log file 

com.primavera.bpm.common.BPMServiceException: Exception during BPMN audit lookup. DB ID: 1
at com.primavera.bpm.BPMConnectorImpl.getProcessInstances(BPMConnectorImpl.java:711)
at com.primavera.infr.srvcs.bpm.BPMNServiceImpl$3.command(Unknown Source)
at com.primavera.infr.srvcs.bpm.BPMNServiceImpl$3.command(Unknown Source)
at com.primavera.bpm.common.BPMCommandRunner$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused By: com.primavera.bpm.common.BPMServiceException: Error authenticating usercatgovind
at com.primavera.bpm.BPMServiceManager.authenticateOnBehalfOf(BPMServiceManager.java:425)
at com.primavera.bpm.BPMConnectorImpl.getProcessInstances(BPMConnectorImpl.java:704)
at com.primavera.infr.srvcs.bpm.BPMNServiceImpl$3.command(Unknown Source)
at com.primavera.infr.srvcs.bpm.BPMNServiceImpl$3.command(Unknown Source)
at com.primavera.bpm.common.BPMCommandRunner$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused By: BPM-71052

Exception
exception.71052.type: error
exception.71052.severity: 2
exception.71052.name: Error during authentication on behalf of another user.
exception.71052.description: Error while authenticating on behalf of user catgovind using adminContext [user=weblogic][sessionKey=3e7f27c6-607c-41cb-ad1d-78c0562c1acc][tokenType=G][requester=null][objectId=null]. Provide valid userName and adminContext.
exception.71052.fix: Contact Oracle support if exception can not be fixed

at weblogic.utils.StackTraceDisabled.unknownMethod()
Caused By: ORABPEL-30509

exception.code:30509
exception.type: ERROR
exception.severity: 2
exception.name: Insufficient privileges to authenticate on behalf of another user.
exception.description: User weblogic cannot authenticate on behalf of user catgovind without admin privileges.
exception.fix: Only users with admin privileges can authenticate on behalf of another user.

 

 Solution: 

The reason behind the error is the client user ‘catgovind’  does not belong to the role  SOA Admin.

  1. Login into WebLogic EM, the default URL is http://localhost:7001/em
  2. Expand WebLogic Domain on the left-hand side 
  3. Right click on the Domain name, Security, Application Roles
  4. Select SOA-infra in Application Stripe and hit search 
  5. Select the Role SOA Admin 
  6. Add the user 
govindan Only users with admin privileges can authenticate on behalf of another user.
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply šŸ™‚
govindan Only users with admin privileges can authenticate on behalf of another user.
Connect me
Like us on Facebook.
Connect!