Hi! Today a customer calls me complaining about SharePoint. They have configured a web application with several site collections, and several webparts in each site.
In webparts there are audiences applied, so certain users can be view content others not. The problem was that for certain reason, one of the users that was included in the audience, didn’t see the webpart.
At the begginning I was thinking that this behaviour was very weird, all site collections in the web application Works well, and the webpart audiences were failing for this user in particular.
So, what can we do in this kind of situations? Keep calm and powershelling 🙂
Type the following:
stsadm -o sync -deleteolddatabases 0 stsadm -o sync $upa = Get-SPServiceApplication | ?{$_ -match "User"} $upa.StartImport($true)
The first command delete the user profile databases and then forcé to recreate them, and the second command performs a full synchronization of the profiles.
After I ran this two commands, all was another time working 🙂
After investigating, I noticed that some administrator change the UPN of this user, so… mystery solved!