Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have written a custom membership provider for forms-based authentication to our SP site. The membership provider authenticates against our existing Users table in our DB.

There are a few bits of information that we store on the users in our table that I'd like to pass along and make use of within SharePoint. I'm wondering what is the best way to do this? The data is things like, for example, a unique internal user ID.

One way, which seems to work, is to have a custom MembershipUser class and add the information to this. I can access this within SharePoint via MembershipUser.GetUser().

I'm just wondering if this is the best way. Is there some way I could access custom properties via SPUser? Or maybe I should use User Profiles?

share|improve this question
add comment

1 Answer 1

This sounds like a good use of the User Profile (based on what you wrote) though I would hope that there are other requirements that the User Profile can help with to make the effort worth it. One chalenge you will face is synchronizing the Profile with your custome DB, you will have to do that manually, with code.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.