tag:blogger.com,1999:blog-7089758558438671730.post3016776098055512758..comments2024-03-19T23:45:16.375+11:00Comments on The Baretta: SharePoint 2010 - People Picker that is showing the wrong user profile informationThe Barettahttp://www.blogger.com/profile/07061523688390358464noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-7089758558438671730.post-58877829403303701702018-02-05T20:28:57.361+11:002018-02-05T20:28:57.361+11:00glad to be of service!glad to be of service!The Barettahttps://www.blogger.com/profile/07061523688390358464noreply@blogger.comtag:blogger.com,1999:blog-7089758558438671730.post-42470778775416238932018-02-05T00:22:35.074+11:002018-02-05T00:22:35.074+11:00Thanks. This helped a lot.
Fieldnames are case-se...Thanks. This helped a lot.<br />Fieldnames are case-sensitive.<br /><br />rather stupid that running a full profile import would not fix this as well.<br /><br />Anonymoushttps://www.blogger.com/profile/15146998112006996717noreply@blogger.comtag:blogger.com,1999:blog-7089758558438671730.post-77868478865009051292016-02-11T15:14:23.130+11:002016-02-11T15:14:23.130+11:00Hi Carollyn, haha oh very embarrassing! Your user...Hi Carollyn, haha oh very embarrassing! Your userID will be different for every site collection. So you will need to get the correct User ID for each site collection E.g.:<br /><br />##Run the first two lines of code on each site collection:<br />$user = Get-SPUser -Identity 'domain\brett' -Web http://root/sitecollection1<br />$user.id<br /><br />$user = Get-SPUser -Identity 'domain\brett' -Web http://root/sitecollection2<br />$user.id<br /><br /><br />The Barettahttps://www.blogger.com/profile/07061523688390358464noreply@blogger.comtag:blogger.com,1999:blog-7089758558438671730.post-30456077782143688152016-02-11T14:38:14.937+11:002016-02-11T14:38:14.937+11:00If I try to access a different site collection by ...If I try to access a different site collection by url, it will not accept the userid I obtained for the root site collection. If I ask for the userid in another site collection it comes back as 1, and then errors out when I use 1 as the userid.Carollynhttps://www.blogger.com/profile/13152042941671233219noreply@blogger.comtag:blogger.com,1999:blog-7089758558438671730.post-41663631470681198372016-02-11T14:35:01.322+11:002016-02-11T14:35:01.322+11:00This worked for the root site in the root site col...This worked for the root site in the root site collection in my webapp, but not the other site collections. Can you make any suggestions. I changed my display name as a test to Minnie Mouse and it is showing up everywhere in SharePoint. I changed it back to what it should be and it won't change back. Even the people picker is displaying Minnie Mouse. A tad embarrassing.<br />Carollynhttps://www.blogger.com/profile/13152042941671233219noreply@blogger.comtag:blogger.com,1999:blog-7089758558438671730.post-81362834487098951892015-11-04T11:57:32.224+11:002015-11-04T11:57:32.224+11:00Thanks for responding Brett. Yeah, the $item is s...Thanks for responding Brett. Yeah, the $item is set fine...it displays all that stuff...ParentList, UID, Web etc. etc.Unknownhttps://www.blogger.com/profile/11364769194093046727noreply@blogger.comtag:blogger.com,1999:blog-7089758558438671730.post-45019647686737223612015-11-02T11:37:55.295+11:002015-11-02T11:37:55.295+11:00Hi Rick, I can run a few tests in a day or teo to ...Hi Rick, I can run a few tests in a day or teo to try and get the same errors as you and see what's happening.<br /><br />For the moment, my guess is that when you set the $item variable using the $user.id it hasn't actually grabbed that user profile. <br /><br />Double check $item contains a list of all the user properties by just typing $item in its own. It should list like 20 or so user properties from memory including email. If it doesn't, try setting the $item variable by typing the user is number manually . <br /><br />Hope that helps, Let me know how you go.The Barettahttps://www.blogger.com/profile/07061523688390358464noreply@blogger.comtag:blogger.com,1999:blog-7089758558438671730.post-6730881240188615332015-11-02T02:55:49.515+11:002015-11-02T02:55:49.515+11:00Hi Brett, I know this is a fairly old post, but my...Hi Brett, I know this is a fairly old post, but my company just moved sharepoint to a completely different domain, and I've experienced some residual effects in people picker because of it. The script worked find up to the $item["FieldName"] = " " step. I figured there was something I was missing, and tried it different ways....like this $item[Email]="Jagdish.Kapure@mycompany.com" but get the : Missing or invalid array index expression.<br /> + CategoryInfo : ParserError: ([:String) [], ParentContainsErrorRecordException<br /> + FullyQualifiedErrorId : MissingArrayIndexExpression<br /><br />And like this - $item["Email"]="Jagdish.Kapure@mycompany.com"<br />[ : Unable to index into an object of type Microsoft.SharePoint.SPListItem.<br />At line:1 char:7<br />+ $item[ <<<< "Email"]="Jagdish.Kapure@mycompany.com"<br /> + CategoryInfo : InvalidOperation: (Email:String) [], RuntimeException<br /> + FullyQualifiedErrorId : CannotIndex<br /><br />Can you see what I'm doing wrong? Thanks - RickUnknownhttps://www.blogger.com/profile/11364769194093046727noreply@blogger.comtag:blogger.com,1999:blog-7089758558438671730.post-84989110560632961432013-11-06T08:50:54.261+11:002013-11-06T08:50:54.261+11:00Hi Tony,
No good. I will try and help you...Hi Tony,<br /> No good. I will try and help you with a few tips below, but if they don't work will require some more detail. <br /><br />A few things to check:<br />Did you List all the fields again for that user after you ran the SystemUpdate to ensure that the field was updated successfully?<br />Where is the outdated profile information appearing on your site? <br />Is it only happening on one Web Application? <br />Have you ran the Update on every Web Application that you notice the issue on?<br /><br />Let me know how you go.<br /><br />Thanks,<br />BrettThe Barettahttps://www.blogger.com/profile/07061523688390358464noreply@blogger.comtag:blogger.com,1999:blog-7089758558438671730.post-34273331622912899302013-11-05T03:14:30.506+11:002013-11-05T03:14:30.506+11:00I tried this and it didn't update anything.I tried this and it didn't update anything.Anonymousnoreply@blogger.com