最近搜索


没有最近搜索

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


请先登录再写评论。

找不到所需的内容?

新建帖子