Creating report for different user

MarekHuk
MarekHuk Expensify Customer Posts: 1 Expensify Newcomer

I am creating reports using API, request looks like that:

{
"credentials":{
"partnerUserID":"aa_marek_marekdomain_pl",
"partnerUserSecret":"aabbbccccdddeeeffff"
},
"type":"create",
"inputSettings":{
"policyID":"CCCCBBBBAAAAA",
"expenses":[

  ],
  "employeeEmail":"[email protected]",
  "type":"report",
  "report":{
     "title":"Delegacja 2018/000021"
  }

}
}

When employeeEmail is email of user who generated token ([email protected]) everything works fine. However it doesn't work when employeeEmail is set to different user ([email protected] in sample). That different user is added to the policy I am using. I have even added [email protected] as copilot to [email protected], but still no success.
Users are in different domains (not sure if that matters).

The response is:
{"responseMessage":"Authentication error","responseCode":404}

Best Answer

Answers