Thursday, May 30, 2013

SharePoint 2010 : User Profile Service Application : Collaboration and Social Computing

Services available in SharePoint, the architecture uses a service model. A farm administrator must grant you permissions before you can access the UPA through Central Administration (CA).

All the information SharePoint stores to track users, tags, ratings, and other social data is stored in the user profi le and social database. This information is managed using UPA and is exposed to you through the Microsoft.Office.Server.UserProfiles namespace.
Use PowerShell to Automate Creating a UPA
$app_UPA = New-SPProfileServiceApplication -Name UPA –PartitionMode -ApplicationPool $appPool

Create a User Profi le Using the Object Model:
public void CreateUserProfile()
{
//We have to get current context of the service application
strUrl = "http://site";
SPSite site = new SPSite(strUrl);
SPServiceContext serviceContext = SPServiceContext.GetContext(site);
//UserProfileManager class contains members for profiles
UserProfileManager upmanager = new UserProfileManager(serviceContext);
//create a new user profile
string strAccount = "domain\\user";
if (!upmanager.UserExists(strAccount))
upmanager.CreateUserProfile(strAccount);
}

The UPA administration screen in CA is divided into four sections.
1.      
     People
1.     Removing the Create Personal Site permission eliminates the My Site link for that user
2.      
S   Synchronization
1.       Configure Synchronization Settings : Create a connection to import user information from Active Directory, IBM Directory, Novell eDirectory, or Sun ONE Directory Server. Imports can also be created using Business Connectivity Service applications.

3.       Organisations
1.       Use this page to add, edit, organize, delete, or map organization profile properties. Organizations are a new feature, managed much like user profiles; however, they allow you to treat organizations you work with as individuals with profiles and social data.

4.       My Site Settings
1.      Configure Personalization Site: This feature is very useful for developers wishing to create role - based dashboards. You can configure links to applications and dashboards and publish based on audience membership.


No comments:

Post a Comment