Creating Properties
One of the requirements when moving from Plumtree to Sharepoint was the ability to store data which wasn’t contained within the users AD profile in the Portal.
In Plumtree this was quite straightforward and in Sharepoint it’s supposed to be quite easy too.
Simply go to the SSP and select User Profile and Properties link
Towards the bottom is the Add Profile Property link.
Selecting this will allow you to configure the property, it’s internal and display name, content type etc.
The important part for me was the replicable setting.
This allows you to push the value from this property down to all Site Collections.
The display setting is also important as this controls which sections this property appears in.
Towards the bottom you can specify an existing Data Store to get the property data from
The various other settings should be self explanatory.
You will need to have the content db marked as Ready and wait for the Profile Synchronization job to run before the properties appear
Editing
When editing properties there are 3 main sections.
- Within the SSP
- Within the Site Collection
- On the users My Sites
The SSP is obviously a no no as users will not have access to this.
The Site Collection doesn’t allow you to update fields even though this is where the My Settings and the Edit Item links take you.
The only other place is My Sites. It is possible to edit a user profile without having an actual My Site created. It’s little known that within the UserDisp.aspx page, there is a redirect control. If you have specified a My Site location in the Portal Connection field. Then all traffic will be routed away from the UserDisp.aspx to the users Profile Page on their My Site.
This is great, except that
- You might want to be connected to another Portal
- You may have many Site Collections and this will be a pain
- You don’t want the My Site Portal name appearing in the site navigation
To work around this you will need to use a feature which will apply a delegate control
This is as simple as creating a feature with an Elements file and use the control element with an ID of ProfileRedirection(used in the UserDisp page) and specifying an ascx page location. You may also specify a sequence to ensure yours appears above any others
The ASCX page will be called each time the page is loaded. This means you are not modifying Sharepoint central files. Particularly important when sharing hardware or paranoid about patching.
In our ASCX we simply check the URL, if it starts with a certain address we redirect, otherwise we don’t
To obtain the URL of the My Site, check out my article over here
This article is useful, and has some good links http://blah.winsmarts.com/2007-7-SharePoint_2007__All_you_ever_wanted_to_know_about_User_Profiles.aspx