Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi Quan,
Thanks for the reply.
Unfortunately, the userContact.PrimaryKeyId does not contain the "username" nor the membershipGUID. It is completely the same as the value that I had originally (from CurrentPrincipal.GetUserGuid), So I can't use it to retrieve data from Membership.
It is the GUID of the episerver contact, not the membership.
Can you try with CustomerContext.GetUserForContactId(PrimaryKeyId) to see if it works for you?
(Btw- mentioning the version in your post will be a big help ;) )
/Q
Hi,
I need to get the membership user and I have the EPiServer.Security.PrincipalInfo.CurrentPrincipal.GetUserGuid() in a variable.
I tried Membership