Allow access to custom membership properties via the MemberIdentityUser #11000
emmagarland
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Task
Currently in v9, you need to use the member service if you need to get and set custom member property type values.
We want to be able to access and update custom member property values directly from the
MemberIdentityUser
.This task is to make it so that end users do not have to use
IMemberService
to retrieve/update custom member properties.Implementation suggestion
This was possible within Shannon Deminick's UmbracoIdentity package via the MemberProperties property in the
UmbracoIdentityMember
class.MemberProperties
property to the v9MemberIdentityUser
object to allow people to access the required CRUD functions on these member properties directly without needing to hit theMemberService
separately.user.MemberProperties
property is affected when a member is created/updated/deleted in the Member user store class, via theMemberService
MemberIdentityUser
is retrieved from theMemberUserStore
, we should also return the custom member properties from the member service (perhaps via some sort of member mapping method), returning them as part of theMemberIdentityUser
objectCurrent status in v9
MemberUserStore
there is anUpdateMemberProperties
method, but it can't persist the updated properties to the member identity object because there are no custom member properties on that identity class.Other areas to consider
Notes
Beta Was this translation helpful? Give feedback.
All reactions