SAP Knowledge Base Article - Public

2429892 - Insufficient permissions! error When Querying ADHOC APIs

Symptom

The following error is observed when you perform a submitQueryJob operation on any of the ADHOC API Entity:

<faultstring>SFAPI Domain Error!</faultstring>

         <detail>

            <ns2:SFWebServiceFault xmlns="urn:sfobject.sfapi.successfactors.com" xmlns:ns2="urn:fault.sfapi.successfactors.com">

               <ns2:errorCode>NO_PERMISSIONS_EXCEPTION</ns2:errorCode>

               <ns2:errorMessage>Insufficient permissions!</ns2:errorMessage>

            </ns2:SFWebServiceFault>

         </detail>

As an example here, we consider the entity: ADHOC_recruitingV2Security

 

 

 

Environment

SuccessFactors SFAPI

Reproducing the Issue

The following error is observed when the submitQueryJob operation is performed on the Adhoc API :

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">

   <S:Body>

      <ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">

         <faultcode>ns2:Server</faultcode>

         <faultstring>SFAPI Domain Error!</faultstring>

         <detail>

            <ns2:SFWebServiceFault xmlns="urn:sfobject.sfapi.successfactors.com" xmlns:ns2="urn:fault.sfapi.successfactors.com">

               <ns2:errorCode>NO_PERMISSIONS_EXCEPTION</ns2:errorCode>

               <ns2:errorMessage>Insufficient permissions!</ns2:errorMessage>

            </ns2:SFWebServiceFault>

         </detail>

      </ns2:Fault>

   </S:Body>

</S:Envelope>

Cause

The API user does not have the right permissions to fetch ADHOC API data.

Resolution

Add the highlighted permission under Reports Permission from Admin Center > Manage Permission Roles > (select API role) > Permission...

 

Adhoc_Permissions.png

Keywords

Insufficient permissions!, ADHOC, SFAPI , KBA , LOD-SF-INT-API , API & Adhoc API Framework , Problem

Product

SAP SuccessFactors HCM Core all versions