Quantcast
Channel: SharePoint 2013 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 21070

Cannot delete user profiles "Sorry, this site hasn't been shared with you."

$
0
0

Hi all,

I'm unable to delete user profiles in my User Profile Service Application. Everything else seems to be working as expected with the UPA. I can create profiles manually, amend profiles etc. Full and incremental syncs with AD are working as expected. 

But if I search for a user profile then try and delete from http://CentralAdmin:1234/_layouts/15/ProfMngr.aspx within Central Admin then I get the message "Sorry, this site hasn't been shared with you."

Looking at some of the messages in the ULS logs it looks like it's to do with permissions on my My Site site collection when deleting user photos:

SPRequest.GetFileAndFolderProperties: UserPrincipalName=, AppPrincipalName= ,bstrUrl=http://mysite.contoso.org.au ,bstrStartUrl=User Photos/Profile Pictures/USER_MThumb.jpg ,ListDocsFlags=16400 ,bThrowException=False

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:   
 at Microsoft.SharePoint.SPWeb.GetFileOrFolderProperties(String strUrl, ListDocsFlags listDocsFlags, Boolean throwException, SPBasePermissions& permMask)    
 at Microsoft.SharePoint.SPFile.PropertiesCore(Boolean throwException)    
 at Microsoft.SharePoint.SPFile.get_Exists()    
 at Microsoft.Office.Server.UserProfiles.UserProfile.RemoveProfilePictures()    
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.RemoveProfilePictures(Guid guid)    
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.RemoveUserProfileBase(Nullable`1 guidDelete, Boolean bBypassCanary)    
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.RemoveUserProfileBase(Guid guidDelete)    
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.RemoveUserProfile(Guid guidDelete)    
 at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.ProfileManager.HandlePostBacks()    
 at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.ProfileManager.OnLoad(EventArgs e)    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
 at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
 at System.Web.UI.Page.ProcessRequest()    
 at System.Web.UI.Page.ProcessRequest(HttpContext context)    
 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)    
 at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)    
 at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)    
 at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)    
 at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)    
 at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)    
 at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)    
 at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)    
 at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)    
 at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

Access Denied. Exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:  
 at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndFolderProperties(String bstrUrl, String bstrStartUrl, ListDocsFlags ListDocsFlags, Boolean bThrowException, Int32& phrStatus, Object& pvarFiles, Object& pvarDirs, UInt32& pdwNumberOfFiles, UInt32& pdwNumberOfDirs)    
 at Microsoft.SharePoint.Library.SPRequest.GetFileAndFolderProperties(String bstrUrl, String bstrStartUrl, ListDocsFlags ListDocsFlags, Boolean bThrowException, Int32& phrStatus, Object& pvarFiles, Object& pvarDirs, UInt32& pdwNumberOfFiles, UInt32& pdwNumberOfDirs).

UserProfileManager.RemoveProfilePictures() exception while deleting profile pictures of 'faece0ae-4a1c-4407-8e2f-f8b32b475fda': System.Threading.ThreadAbortException: Thread was being aborted.    
 at Microsoft.SharePoint.SPFile.get_Exists()    
 at Microsoft.Office.Server.UserProfiles.UserProfile.RemoveProfilePictures()    
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.RemoveProfilePictures(Guid guid)

 

Has anyone come across this before? I'm logged in and carrying out this operation using my "admin/setup" account which is a site collection administrator of mysite, has admin/full control of the User Profile Service Application. Even with DB owner permissions (UPA databases and My Site Content DB) I still get this problem.

Thanks.


Viewing all articles
Browse latest Browse all 21070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>