Wednesday, August 24, 2016

User is not authorized to query for ProcessDefinition


Sometimes OPInt problems do not have hit on internet. I try to write problem as I see to help others
and for me to remember what i have to do if I encounter same error again.

Exception

User xyzis not authorized to search for processes in 10.6.xxx.xxx Contact your administrator for the required authorizations.

com.sap.pv.opm.discovery.bpm.search.BPMSearchOperation$BPMRequestFailedException: com.sap.visibility.bpm.facade.service.ExecutionFault: User is not authorized to query for ProcessDefinition.
at com.sap.pv.opm.discovery.bpm.search.BPMSearchOperation.run(BPMSearchOperation.java:45)
at com.sap.pv.opm.discovery.bpm.search.BPMSearchOperation.run(BPMSearchOperation.java:1)
at com.sap.pv.opm.discovery.common.operation.CancellableLongOperation$WrapperThread.run(CancellableLongOperation.java:70)
Caused by: com.sap.visibility.bpm.facade.service.ExecutionFault: User is not authorized to query for ProcessDefinition.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:135)
at com.sun.xml.internal.ws.client.sei.StubHandler.readResponse(StubHandler.java:238)

Solution :

Assign a UME action SAP_BPM_EXPORT_MODEL to related user.

From SAP Documentation :

Additional Security Configuration
The SAP HANA user who discovers SAP Business Process Management process definitions needs to have authorization as an SAP Gateway user. To consume process definitions from the SAP Business Process Management system through the SAP Gateway, the user that is authenticated in the SAP Business Process Management system needs to be assigned a UME action SAP_BPM_EXPORT_MODEL. We also recommend the following:
SAP_BPM_EXPORT_MODEL action is assigned to the SAP_BPM_SuperDisplay role.
SAP_BPM_EXPORT_MODEL action is assigned to the Support user.
To enable the user to see business scenario definitions in the space.me workspace, you need to assign the user the respective SQL and analytic privileges. For more information, see .

No comments:

Post a Comment