Thanks. I tried that, but it doesn't return anything. If I pull
CurrentUser.Membership.Count (just for the sake of analyzing the problem), it returns 0,despite the logged-in user having a membership record. I don't know why that is, but it's got to be where the problem lies. I create the membership records programmatically when they log in, but I've also tried it with a membership created through the administration portal.
If I use
CurrentUser.OtherBindings.MembershipUsers.FirstItem.DisplayName, I get a result, but the it's the display name of the MembershipUser record: cms.membershipuser%20(4). So the system knows this user has a membership, but I can't access the information about it.