REST API to get all active users which last login longer than 1 year ago

I use the REST API call to retrieve all active users.,name,banned,login,lastAccessTime,creationTime,teams(id,name),groups(id,name),profile(email)&$top=-1&query=not is: banned

Can you tell me the query syntax to select a subset of users which have a lastAccessTime older than one year ago?

1 comment
Comment actions Permalink

I'm Lena from the YouTrack Team.

I'm afraid, the query doesn't support this request. By the way, please note that lastAccessTime - is a date when the user last time logged in the account and not the time when the user was actually in the system.


Please sign in to leave a comment.