Friday, March 4, 2016

Application error when access /_admin/owners.aspx, Error=User cannot be found. reolved using PowerShell

While trying to set site collection admin and secondary admin from central admin in SharePoint I got below error in ULS log,

Application error when access /_admin/owners.aspx, Error=User cannot be found.   at Microsoft.SharePoint.SPUserCollection.GetByID(Int32 id)     at Microsoft.SharePoint.Administration.SPSiteAdministration.get_SecondaryContactLoginName()

User below PowerShell

Add-PSSnapin "Microsoft.SharePoint.PowerShell"
Set-SPSite –Identity https://contoso.com/sites/it/ –SecondaryOwnerAlias domain\umorbale

https://technet.microsoft.com/en-in/library/ff631156.aspx?f=255&MSPPError=-2147217396

https://pholpar.wordpress.com/2011/05/13/user-cannot-be-found-error-solved-using-a-sql-query/

Populate people picker field with logged in user in SharePoint using JS

Please use below code to populate people picker in SharePoint online, <script src="https://ajax.googleapis.com/ajax/libs/jquery/3....