Update my settings link in MOSS 2007
After you deploy MOSS, if the user tries to click on the ‘My Settings’, he will be taken to a page where he will not be able to update anything!!! Enough articles are there in the web why it is so. My objective here is to remove that link and add a new one which points to the ‘EditProfile.aspx’ page which can be used to update the profile.
Note: If the user gets a ‘Access denied’ message when he tries to access the page, make sure he has ‘Manage User Profiles’ permission in the
Admin Site –> Shared Service Provider –> User Profiles and My Sites –> Personalization services permissions
Now to remove the ‘My Settings’ link, do the following.
http://blogs.pointbridge.com/Blogs/ajgaonkar_amol/Pages/Post.aspx?_ID=6
Adding a new link ‘My Profile’
To add a new item in the ‘Welcome’ menu, we need to create and deploy a feature.
- Go to <Program Files>\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES
- Create a new folder ‘UpdateMyProfile’
- Under this folder create a file ‘feature.xml’ and paste the following code in this file.
- Create another file called ‘elements.xml’ and paste the following code.
- Now install this feature to the farm using the stsadm command.
- Now activate this feature to the site using the stsadm command.
<?xml version="1.0" encoding="utf-8"?> <Feature Id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" Title="My Profile" Description="" Version="1.0.0.0" Scope="Site" xmlns="http://schemas.microsoft.com/sharepoint/"> <ElementManifests> <ElementManifest Location="elements.xml"/> </ElementManifests> </Feature>
Note: the ‘Feature Id’ should be replaced by a new GUID. You can use the http://www.guidgenerator.com/online-guid-generator.aspx site to create a new GUID.
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="PersonalActionsMenu_MyProfile" GroupId="PersonalActions" Location="Microsoft.SharePoint.StandardMenu" Sequence="101" Title="My Profile" Description="Update your user information" ImageUrl="/_layouts/images/menuprofile.gif"> <UrlAction Url="/_layouts/editprofile.aspx"/> </CustomAction> </Elements>
stsadm -o installfeature -name UpdateMyProfile
stsadm -o activatefeature -name UpdateMyProfile –url http://intranet.yoursite.com
Now if you login to your site, you should be able to see a new ‘My Profile’ link under the ‘Welcome’ menu!!