A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn 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