I have written this piece of code to get user associated with worker.
Please help me how to get user worker relation for past workers?
DirPersonUser personUser = DirPersonUser::findParty(worker.Person); this.UserID = personUser.User;