Dynamics 365 JavaScript Get User
To get the Dynamics 365 user name and user id in JavaScript, create a function and attach and publish: function GetUser() { var UserId = Xrm.Page.context.getUserId(); var UserName = Xrm.Page.context.getUserName(); alert(UserId + ” ” + UserName); }