Page MenuHomePhabricator

Notify Phab WMF users to link their SUL account (who currently only link LDAP)
Open, LowPublic

Description

Screenshot From 2025-10-11 20-51-39.png (886×351 px, 47 KB)

SELECT CONCAT("https://phabricator.wikimedia.org/p/", u.userName), ue.address AS emailAddress, ua.accountType AS externalAccount, ua.username AS externalAccountName, FROM_UNIXTIME(u.dateCreated) AS creation FROM phabricator_user.user u JOIN phabricator_user.user_email ue JOIN phabricator_user.user_externalaccount ua WHERE ue.userPHID = u.phid AND ua.userPHID = u.phid AND ue.address LIKE "%@wikimedia.org" AND ue.isPrimary = 1 AND u.isDisabled = 0 AND u.isSystemAgent = 0 AND u.phid IN (SELECT u2.phid FROM phabricator_user.user u2 JOIN phabricator_user.user_externalaccount ua2 ON ua2.userPHID = u2.phid WHERE ua2.accountType = "ldap") AND u.phid NOT IN (SELECT u3.phid FROM phabricator_user.user u3 JOIN phabricator_user.user_externalaccount ua3 ON ua3.userPHID = u3.phid WHERE ua3.accountType = "mediawiki") ORDER BY creation;

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Notify Phab WMF users to link their SUL accountrepos/phabricator/phabricator!104aklapperaklapper-wmf/T407064wmf/stable
Customize query in GitLab

Event Timeline

Aklapper triaged this task as Low priority.
Latkdo set Due Date to Apr 15 2026, 12:00 AM.Apr 15 2026, 10:12 AM
Aklapper removed Due Date which was set to Apr 15 2026, 12:00 AM.Apr 15 2026, 10:13 AM
Aklapper changed the task status from Open to Stalled.May 27 2026, 8:42 AM

Note to myself: If I merged this before T410849 this would trigger an annoying rebase for that linked ticket, so I want to look into this again once T410849 is done

Aklapper changed the task status from Stalled to Open.Jun 24 2026, 9:45 AM