0

I am trying to retrieve all the Business Units using the below SOAP request as mentioned in the post: List of OYBAccountIDs and Business Unit Names

<soapenv:Body>
  <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
    <RetrieveRequest>
      <ObjectType>BusinessUnit</ObjectType>
      <Properties>ID</Properties>
      <Properties>Name</Properties>
      <QueryAllAccounts>true</QueryAllAccounts>
    </RetrieveRequest>
  </RetrieveRequestMsg>
</soapenv:Body>

But i am getting the response as "Error: API Permission Failed.". Is there any permission that we need to give for the API User? Please suggest.

1

In your Installed Package Component Scope, make sure that Provisioning > Accounts has 'Read' access. Note that if you update the scope in an existing Installed Package, changes will take 5 minutes to propagate. So go and make a cup of tea, then come back and get a new access token and try your request once again.

Installed Package Scope

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.