The circle of life – ** .Net – Training – MOSS **

  • Past Post

  • Vistor Locations

  • Advertisements

SharePoint 2010 My Sites

Posted by Clayton James on April 11, 2011

There are two main area associated with My Sites.

  1. My Site Host Site Collection – Shared by all users – My Profile link – First site collection created in My Site web application
  2. My Site Personal Site Collection – Personal site collection – created when users click on the My Profile link – subsequent site collections in the My Site web application – can disable

The My Site Host Site Collection is easily customised and branded as this site collection it is shared by all users. There is a great article explaining it here.

The My Site Personal Site Collection is created for each individual user thus customisation is not so easy. A developer is required here as the solution here is known as Feature Stapling.

Feature Stapling allows a Feature to be called when a Site Template is called during the provisioning process. This means you can run some code to change master pages, apply custom security, etc… to the site during the provisioning process. So when the site is displayed to the user all of the changes you implemented in your Feature has been applied.

I have just finished implementing a solution for a client which I am happy about as Personal Sites are now branded and users are not site collection administrators.

This post while written for SharePoint 2007 is still very relevant for SharePoint 2010


10 Responses to “SharePoint 2010 My Sites”

  1. Eric said

    Hi CJ,
    Can you explain how you removed the user from the Site Collection Administrators for the My Site Personal Site (My Content)?
    I used Feature Stapling to do this and I tried two methods – 1) changing SPSite.Owner, 2) using SPUser.IsAdmin and SPUser.Update. Both successfully changed the Site Collection Administrator but both caused two strange issues.
    Error 1) At a seemingly random amount of time after the provisioning finishes (sometimes 30 seconds, sometimes 3 minutes) the Site Title changes from the user’s name to the NEW Site Collection Admin’s name! So now every site ends up with the same Title.
    Error 2) The link in the My Site Profile page in the Content tab that says “Go To ” to take a different user to this Personal page has the correct address which ends in the user’s ID but instead of taking you to the Personal page it takes you to the Site Collection Admin’s My Site Profile page!
    Did you encounter these issues?
    Do you know how to get around them?
    Can you explain how you did this solution?
    Are you letting the user’s auto-provision their own page when they click My Content for the first time and then you use Feature Stapling to activate your Feature/code or did you do this some other way?

    Please help before I go insane!

  2. David Donaldson said

    Hi Clayton,
    Stumbled across this site and found your picture. Looks like you have come a long way from our Plumbing days at Redlands. I am happy to see you are going well. I too have had significant change and am now an asset engineer in Ergon Energy based in Maryborough.


  3. Woah! I’m really enjoying the template/theme of this site. It’s simple, yet effective.
    A lot of times it’s hard to get that “perfect balance” between user friendliness and visual appeal. I must say you’ve done a superb job with this.
    Additionally, the blog loads super quick for me on Chrome.
    Outstanding Blog!

  4. Magnificent goods from you, man. I have understand your
    stuff previous to and you are just too magnificent.
    I actually like what you have acquired here, really like what you are saying and the way in which you
    say it. You make it entertaining and you still take care of to keep it wise.

    I cant wait to read much more from you. This
    is really a wonderful website.

  5. What i don’t understood is if truth be told how you’re
    not actually a lot more well-favored than you might be now.
    You are so intelligent. You realize thus considerably relating to this matter, produced me in my view
    imagine it from numerous numerous angles. Its like women and
    men aren’t fascinated until it’s one thing to do with Lady gaga!
    Your own stuffs nice. All the time handle it up!

  6. Good replies in return of this query with genuine arguments
    and telling everything about that.

  7. A person necessarily assist to make critically articles I’d state. This is the very first time I frequented your website page and so far? I surprised with the research you made to make this particular put up extraordinary. Great task!

  8. Hello, for all time i used to check web site posts here in the early hours in the morning, as i like to find out more
    and more.

  9. Marcos said

    Hi there! I know this is kind of off topic but I was wondering if you
    knew where I could locate a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having difficulty
    finding one? Thanks a lot!

  10. hejj broer!nAlls goed?nhier well!nIk zie je wel weer over een paar weken!!nIk weet niet hoeveel….ahahahnDoeiiDoeii Hvjj! Click https://twitter.com/moooker1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: