Creating report for different user

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
-
Hey @MarekHuk, good to hear from you! You'll need to get permission to create reports in other user's accounts (so long as they are from your organisation). As you can imagine, we don't allow you to do this by-default!
I'll send you over details of the process.
Thanks!
Answers
-
Hi, I have the same need would you be able to provide the process
-
Ted Harris Expensify Success Coach - Admin, Expensify Team, Expensify Student Ambassador Posts: 359 Expensify Team