The current user or worker could be retrieved through following code since AX 2012 DirPersonUser::currentWorker() However, In Dynamics 365 for operation this has refactored to; HcmWorkerLookup::currentWorker()
A library with Microsoft Dynamics AX, Microsoft Dynamics 365 FinOps and Supply Chain Management, Power Platform, Integrations, development and functional processes, tricks and trip, tutorials and much more....