This blog aims to learn the ropes of Microsoft Dynamics CRM 2013 / Orion - D.MANJALY
var userId = Xrm.Page.context.getUserId();
(Ref : CRM 2013 SDK )