Terminate user via API

MeirNaim
MeirNaim Expensify Customer Posts: 2

Hi,


I would like to terminate a user through the API.

I have few issues:

  1. In order to update the 'Is terminated' I need some required fields , how can I get these specific user details (Manager Email, Policy ID...)?
  2. When I try as admin to get policy details of a user I get an error saying :"Error: Exception Not authorized to authenticate as user name@Domain.com " though Im using partnerUserID & partnerUserSecret (I can get only the policies under the admin user)?

Regards,

Meir.

Answers