Sharepoint 2013 : User key value from token is not a user key so throwing.

Hi SharePointers,

In SharePoint 2013, if you face the below error in ULS logs”User key value from token is not a user key so throwing.”. You need to run the powershell script to fix this issue.

Below is the powershell script to update the super user account.

$wa = Get-SPWebApplication -Identity “[name of your web application, not its URL]”

$wa.Properties[“portalsuperreaderaccount”] = “i:0#.w|CONTOSO\svc.spsuperreader”
$wa.Update()

Happy SharePointing 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *