If you want to quickly check SharePoint user profile properties, You can get it from user information list or by simply clicking on user name hyperlinks from metadata fields such as: Created by. Usually, user profile page points to:
- http://sharepointsite.com/_layouts/userdisp.aspx?ID=123
If the user has My site profile created, then the UserDisp.aspx page redirects to his/her My site profile page automatically.
Is there any way to get the basic version of userdisp.aspx, instead of redirecting them to the MySite profile of that person when someone clicks on such links? Well, Here is a nifty trick to stop redirecting to user's Mysite profile page and get the simple User Information.
- Add:Force=True parameter to the above URL. So, it will be:
http://portal.ad2012.loc/_layouts/userdisp.aspx?Force=True&ID=20
What if You want to avoid profile redirect permanently?
Behind the scenes, there is a OOTB user control called "MySiteRedirection.ascx" User control tied to a delegate control "DelctlProfileRedirection" on userdisp.aspx page that does this re-direction. You can either replace this delegate control or you can simply disable the feature: "MySite" To avoid profile redirect.
2. Sharepoint 2007 userdisp.aspx redirect to MySite
Question :
Hi,
we encountered nice little problem after WSS&MOSS SP2 update.. userdisp.aspx is trying to redirect user to MySites and crashes. MySites are disabled. userdisp.aspx is working when you apply &force=true to end of the URL.
userdisp.aspx was not behaving whis way before the update. How could we customize that userdisp.aspx in the layouts-folder so it would NOT go to mysites, and would work the way it works with userdisp.aspx&force=true works? Or is there any other way to solve this?
Solution :
1.- Open in Notepad: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAY
2.- Change Scope="Farm" to Scope="Web" like below....
There's another way using a feature... but this way is EZ
From
<SharePoint:DelegateControl runat="server" id="DelctlProfileRedirection" ControlId="ProfileRedirection" Scope="Farm" />
To
<SharePoint:DelegateControl runat="server" id="DelctlProfileRedirection" ControlId="ProfileRedirection" Scope="Web" />
References:
1. Disable Redirect from User Information Page (userdisp.aspx) to MySite Profile Page (Person.aspx)
2. Sharepoint 2007 userdisp.aspx redirect to MySite
That is very interesting I love reading and I am always searching for informative information like this.I am very happy to your post about on. Great information, I would like to say your post is very informative.
ReplyDeletehtpp portal