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

Is it possible to package custom properties that i manually create for profile for mysites in sharepoint 2010. E.G. music, hobbies ...

So next time i just next time i dont need to do it manually when im putting mysite on the production. So i just execute some wsp to create them all etc.

If it is possible, then how do i do that.

Any usefull links or info would be appreciented.

Thanks in advance

PS: extra information to clarify things:

What are properties im talking about: I created a mysite host, and i have my profile the profile has standard properties like skills, interests, name, etc etc. For my solution i needed extra properties like hobby, sport, music etc ...

So what i did i went to user profiles in administration central and i manually added those properties to user profile, now when you open the profiles i see those properties.

So to avoid that extra manual work i want to make sure those 3 extra properties are created automatically. So i dont go to do it all over again on production server, but instead i deploy a package and the properties are there ... but the question is how do i do that and is it possible?

Links or extra infor is appreciated

share|improve this question
    
I don't understand completely what properties you talking about. May be you are searching for feature stampling. It give you ability to execute some code in event of my site creation and you can set some properties by this code. –  IAfanasov Dec 19 '11 at 10:18
    
I updated the post with extra info! –  Igorok Dec 19 '11 at 10:24
add comment

2 Answers 2

Now it has become clear =)

MSDN: How to: Create and Edit a User Profile Property

Use this code with some your feature activated event.

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.