Hi there,
I try to pull up some data for our users in a specific project in terms of their last login date.
Our database is in postgresql, Im just trying to find a query to do so.
I can pull the list of user for our specfic project but Im having dificulty in finding the right query to add "last login date" on that query.
Hello,
You can find an answer in this KB:
I tried this query but it does not work, :
SELECT A.user_name, to_timestamp(CAST(B.attribute_value AS bigint)/1000)
FROM cwd_user A , cwd_user_attributes B
WHERE B.user_id = A.id
AND B.attribute_name = 'lastAuthenticated'
INNER JOIN
projectroleactor P
ON A.USER_NAME = P.ROLETYPEPARAMETER
where pid = '16026'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would write this query like this:
SELECT A.user_name, to_timestamp(CAST(B.attribute_value AS bigint)/1000)
FROM cwd_user A , cwd_user_attributes B, projectroleactor P
WHERE B.user_id = A.id
AND B.attribute_name = 'lastAuthenticated'
AND A.USER_NAME = P.ROLETYPEPARAMETER
AND pid = '16026'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.