My Sites Error – HTTP 403 (forbidden) on EditProfile.aspx

Just a quick one as I had this error occur on a test environment and couldn’t find much about it online.

If you get the error HTTP 403 when you try and edit a profile in My Sites (/_layouts/EditProfile.aspx?accountname=[account]") then fear not, it’ll most likely be because you’ve set the ‘portalsuperreaderaccount’ and ‘portalsuperuseraccount’ properties for the web-application and you’ve not given these accounts access to the My Sites web-application.

In the ULS logs of the web-front-end in question you’ll probably see errors like this:


The Fix

Add the users you’ve set for these properties to the web-application “User Policy" with “full-read” and “full control” rights as appropriate.



That’s it – no restarts or anything required – hit F5 and you’re good to go!

Comments (1)
  1. Kotov Dmitry says:


    Interesting, I found your post when I was searching for possible clues on error we have when opening "preferences" on SharePoint basic search site (SharePoint 2013 Foudnation). Its generating an error and in logs I can see the following:

    Application error when access /_layouts/15/EditUserPref.aspx,

                  Error=Common Language Runtime detected an invalid program.   at


                  (EventArgs e)     at System.Web.UI.Control.LoadRecursive()    

                  at System.Web.UI.Page.ProcessRequestMain(Boolean

                  includeStagesBeforeAsyncPoint, Boolean


    But I presume the issue is different than you explained. Are you running SharePoint STD/ENT?

Comments are closed.

Skip to main content