Unable to get call records for the User under the Admin account token

Good day,

I’m trying to get call records for a User using the Admin account token. But looks like it’s not allowed.

I left the support request for that around 7 months ago Unauthorized request for call history API(Unable to get call history), and one of the responses I got was:

< There is going to be an update to the Media micro that will be available in a couple of weeks that will give you the ability to get user call history for multiple users with an admin account token.

Has that been implemented? If so, how can I get call records for users in my accounts under the admin account token?

Please advise, thanks.

Thanks,
Vlad

Hi Vlad,

I just got confirmation that this feature has been pushed to the Public cloud.

An admin should now be able to query another user’s call history by adding the $filter query param to the request.

This should look something like this:

$filter=contains(principal, ‘userId’)

where you would replace the ‘userId’ field with the GUID of the user in question.