locked
Get logged on user RRS feed

  • Question

  • Hi,

    In Javascript how can I get the guid of the current logged on user?

    Thanks

    Tuesday, May 17, 2011 8:34 PM

Answers

  • Hello,

    In CRM 2011 it is provided for you in the Xrm.Page.context as Xrm.Page.context.getUserId(). It will return the guid encapsulated with { and }.

    In CRM 4.0, you will need to process a WhoAmIRequest() to get the GUID.

    Tuesday, May 17, 2011 9:01 PM

All replies