Showing posts with label UserProfiles. Show all posts
Showing posts with label UserProfiles. Show all posts

Monday, 18 July 2011

Sharepoint 2010 : Create a mysite for each SharePoint profile (Powershell)

So we have spent an amount of time (hopefully not too much ha) configuring the User profile service and the synchronisation which imports profiles from AD. Our filters are in place so we only have valid profiles.

For the next step we would like to automatically create all the mysites in one hit.

This may or may not be a good idea depending on your exact business requirements but if it is what you want here is a script which will iterate through the profiles and create you a my site for each user.

$site = new-object Microsoft.SharePoint.SPSite("http://mysitehost"); 
$ServiceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($site); 


$ProfileManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($ServiceContext); 
$AllProfiles = $ProfileManager.GetEnumerator();


foreach($profile in $AllProfiles) 
{ 
  
     $profile.CreatePersonalSite();
}


Great fun don't you reckon.

Wednesday, 19 January 2011

User profiles in SharePoint 2010

Why do we need them?

User profiles are the foundation of many of the SharePoint 2010 features. Including:
  • People search ( searching on expertise / interests)
  • Organisational hierarchy browser
  • Content targeting
  • "My Sites" functionality (including notes / interests / ratings and the like).
So in short, you need user profiles.

What makes up the user profiles architecture?

There are two main parts relating to SharePoint.

1.  User profile service application(UPA)
This service application allows the management capability of the user profiles. So it provides a central location for configuring:
  • User profile properties
  • Organisation profiles
  • Audiences
  • Profile synchronization settings (you can also write back to source due to forefront identity manager capabilities)
  • Organization browsing and management settings
  • My Site settings (my site host / my site website)
A "user profile service " instance is required and allows all these features to be available via an api

2.  User profile synchronisation service
This is effectively a SharePoint wrapper for forefront identity manager components. It adds two windows services and is responsible for synchronising profile information with the user source. It is important to note that in SharePoint 2010 it is possible to send information back to the source in additional  to the predictable pulling of data.

There are three databases related to the user profiles:
  • Profile database - Stores the user profiles
  • Social database -Stores notes, tags and ratings
  • Synchronisation db - Used by the synch service for managing its operations

So there it is, a quick look into User profiles in 2010.

Related links:
Technet : User profile service overview
Technet : Create, edit, or delete a User Profile service application
This post is after listening to Spence talking in this video:
TechNet Radio: User Profiles in SharePoint 2010
I decided to make some notes for myself so I could refer to them in the future.