retrieve worker from User Id

PHOTO EMBED

Wed Feb 12 2025 09:52:04 GMT+0000 (Coordinated Universal Time)

Saved by @MinaTimo

HcmWorker::userId2Worker(curUserId());
hcmWorker = HcmWorker::find(HcmWorker::userId2Worker(curUserId()));
         
// not working
hcmWorker = hcmWorker::find(DirPersonUser::findUserWorkerReference(userId));
content_copyCOPY