Get filter ID of built-in current user's filter

Hi everyone,

I’m trying to get the filter ID of the default current user’s filter in People. I am able to see that there is an ID associated with this filter in the URL when I load it.

However, when I get all filters from the API, this one isn’t listed.

Thanks!

Hi @jacobpi

Could you check if a filter is shared? As if it was created by another user as a private filter, you will not be able to get it via API.

Hi @mykhailo, thanks for the reply! Yup, looks like the filter has to be shared in order to be pulled from the API.

I tried making a shared filter passing the Owner as Current User, but it seems it will only return that filter using the User for the API Key used. I’m trying to make a request to get the number of Persons owned by all Users in our account. Is there a better way to get this info rather than getting the API keys for all current and future Users?

Thanks!

Hi @jacobpi

I’m trying to make a request to get the number of Persons owned by all Users in our account.

Have you tried GET /persons with API token of an admin user (without filters)?