Hi,
I have a SharePoint 2013 environment and I use AD security groups to assign tasks to groups of persons. This AD group has an email address in order to receive task notifications.
This email address has been changed in AD. Now I want to update the internal userlist which can be found here:
http://<SiteCollectionUrl>/_catalogs/users/detail.aspx
In this list there is still the old emailaddress assigned to the AD group. I read that the Set-SPUser cmd can update information from AD. That is why I tried this:
$users = Get-SPUser -Web http://<SiteCollectionUrl>
foreach ($user in $users)
{
write-host $user
Set-SPUser -identity $user -SyncFromAD
}
It seems to work fine for users, but not for groups. The groups are those objects with the wrong email address.
I get this error message for groups:
Set-SPUser : Cannot get the full name or e-mail address of user
"c:0+.w|s-1-5-21-2600590685-3204133502-3760992323-11503".
The group has an email address in AD.
What to do next?
Thanks
Sven