最近の検索


最近の検索はありません

Get Agents last login date using API



投稿日時:2021年1月28日

Hello all,

I want to get a json response with the list of Agents who did not login to they're account in the past 30 days.

I found some information in the documentation but not exactly what i need.

Could someone help me with some information on what endpoint should i use for get and how to add a filter to retrieve only the agents that not logged in recently ?

Thank you!

Cristi


1

1

1件のコメント

Hello,

You should be able to get the last login information for all agents by calling api/v2/users.json?role=agent endpoint. There is a parameter called last_login_at which will give you the last login date and time of the agents. Unfortunately, we can't get filtered results from search endpoint as last_login_date is not a searchable user property. So, you will have to retrieve all results and filter down by yourself.

Cheers,

Korak

1


サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿