최근 검색


최근 검색 없음

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


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물