This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » eZ Publish 5 Platform » API eZ 5 Get user last login date

API eZ 5 Get user last login date

API eZ 5 Get user last login date

Wednesday 03 June 2015 2:37:09 pm - 4 replies

Hi there,

I am using the API to get users from a specific group. My problem is that i need the last_login_timestamp of the users. The User class of the API does not have that kind of data.

Question :

1) Am I able to use the eZ 5 API to get the last_login_timestamp ? or do I have to use the legacy stack to get the users ?

Here is the code I am using :

$repository = $this->getContainer()->get('ezpublish.api.repository');
$userService = $repository->getUserService();
$userGroup = $userService->loadUserGroup(60);
$myUsers = $userService->loadUsersOfUserGroup($userGroup);

The data I am interested in is in the ezuservisit table "last_login_timestamp"

2) Is it possible with the new stack to write a query in SQL directly ? or even using filter (criterion) to look for the data I need ?

Thanks. Cheers.

Wednesday 03 June 2015 5:23:58 pm

Hi there,

My problem has been solved with legacy stack.

Thanks, Cheers.

Wednesday 03 June 2015 6:07:43 pm

Hello Task,

Sorry for my late reply. But I think you have this solved now.

I think that using the legacy stack is the right answer at this time since to my knowledge this is one of those additional use cases not (yet?) supported by the new stack.


Friday 12 August 2016 10:09:01 am

more than a year passed by and there is still no solution for this in new stack ?!?

Wednesday 17 August 2016 4:08:27 pm

Plenty of ways to archive this using custom code in new stack, or someone could contribute to add the feature. With legacy being the most feature rich CMS made in history, some less central features are missing, but contributions are always welcome blunk.gif Emoticon


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from