Hi Everybody,
How to get the currently logged user Id in custom ASPX page which is created "Custom View" option under the Sales tab in MS CRM 2016..?
*This post is locked for comments
Hi Everybody,
How to get the currently logged user Id in custom ASPX page which is created "Custom View" option under the Sales tab in MS CRM 2016..?
*This post is locked for comments
Thanks David for your prompt response. its OnPremise & using AD authentication. just need to get the logged user id who ever logs on crm in custom .aspx page.
Is this CRM Online or OnPremise ? If it's OnPremise, are you using AD or Claims authentication ?
The easy scenario is OnPremise with AD authentication, in which case you should be able to use ASP.Net impersonation , and System.Net.CredentialCache.DefaultNetworkCredentials will give you the logged-on user name, which you can match to the domainname of a systemuser in CRM
André Arnaud de Cal...
292,865
Super User 2025 Season 1
Martin Dráb
231,723
Most Valuable Professional
nmaenpaa
101,156
Moderator