Last active
June 27, 2023 08:33
-
-
Save ProNotion/0659399aebda8c84e1ba213e42846aba to your computer and use it in GitHub Desktop.
Get Umbraco Members with last login date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT m.LoginName, m.Email, cmsPropertyData.dataDate AS LastLoginDate | |
FROM cmsPropertyType INNER JOIN | |
cmsPropertyData ON | |
cmsPropertyType.id = cmsPropertyData.propertytypeid RIGHT OUTER JOIN | |
cmsMember AS m ON cmsPropertyData.contentNodeId = m.nodeId | |
WHERE (cmsPropertyType.Alias = N'umbracoMemberLastLogin') AND (cmsPropertyData.dataDate IS NOT NULL) | |
ORDER BY LastLoginDate DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FYI This will only include accounts where the user has logged in at least once