Person or Group column problem

Hi, I have quite tricky problem with Person or Group column. We use that column in quite many places. When I create new item or edit list item properties I can find person just fine for example with lastname and choose it but when I save that
item the persons name changes to someone else of our users.
What I noticed is that if I search person with beginning of their email address (firstname.lastname) everything is good even after I save the item. With some persons it works even if I find them with lastname.
Is there something to do with users ID in Site Collection hidden user information list vs User Profile Database?
Any ideas. Thank you.
Miikka

Hi Miikka,
can you try cleaning up the user information list via powershell and reconfigure the userprofile sync.  following url contains the powershell script for user information clean up
http://blog.fpweb.net/how-to-clean-up-sharepoint-user-information-list-with-powershell/#.VPrbn_mUeSo
Regards  Roy Joyson
Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.
Roy Joyson

Similar Messages

  • Unable to select SOME external users in person or group column in SharePoint O365

    Here's a head scratcher.
    We have an O365 SharePoint(G3) instance.
    Sent external users invites to join the site from the SharePoint Group that the external user will be placed.
    External users accepted invitations and now have access to the site with the correct permissions.
    Permissions assigned to SharePoint Group.
    Some external users can be selected for "Assigned to" field (person or group column type).
    Some external users canNOT be selected for "Assigned to" field (person or group column type).
    When typing external users name that canNOT be selected, the error message "No results found" appears.
    Went to Site Settings > Site Permisisons > Check Permissions and typed in external users name that canNOT be selected, the error message "No results found" appears.
    I have no idea why this would happen for some external users and not others.
    External users that can be selected and those that canNOT be selected are in the same SharePoint Group and have the same permissions.
    Could this be due to how the external user set up their account?
    Help me please. This is driving my crazy.
    Thanks in advance.
    Tamara
    The Stumped SharePointer
    Tamara Bredemus SharePoint Minion...working up to Maven

    Hi Miikka,
    can you try cleaning up the user information list via powershell and reconfigure the userprofile sync.  following url contains the powershell script for user information clean up
    http://blog.fpweb.net/how-to-clean-up-sharepoint-user-information-list-with-powershell/#.VPrbn_mUeSo
    Regards  Roy Joyson
    Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.
    Roy Joyson

  • What is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    what is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    there is a workaround you can try, create audience and add DL to them and deal with the audience or convert DL to groups
    https://social.technet.microsoft.com/Forums/en-US/02f0d773-8188-4d94-a448-0c04d838b0cf/distribution-lists-in-sharepoint?forum=sharepointgenerallegacy
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Filter base on Person or Group column does not work correctly in sharepoint 2013

    I have a list that contain "Person or Group"column that set "Allow Multiple Selections" to yes.
    In sharepoint 2010 I create view and filter it base on this person or group column equal to [Me]. And it's work correctly.
    Now in sharepoint 2013 when I filter view, base on this person or group column equal to [Me], it does not show me any items, although list has data that person or group column set to me.
    What's wrong?
    Thanks.

    If you want to filter the list view when current user is in the group, then I recommend to use theMembership comparator in the
    query and add it to the view page in SharePoint Designer:
    <Where><Or><Membership Type="CurrentUserGroups"><FieldRef Name="AssignedTo"/></Membership><Eq><FieldRef Name="AssignedTo"/><Value Type="Integer"><UserID Type="Integer"/></Value></Eq></Or></Where>
    More reference:
    http://decodesharepoint.blogspot.com/2010/01/filter-list-views-by-user-groups.html

  • Person and Group column in Document Information Panel in Word

    Hi All,
    Environment: SharePoint 2010 and Claims based Authentication.
    We have a library with "Person and Group" column, "Choose from:" is set to "All Users" and in the "Document Information Panel" when I click on the Address Book (book symbol) it doesn't open the popup to select  the
    user nor it resolves the ids that I put in.
    But if I change the setting for "Choose from:" to "SharePoint Group:" and select any group (tested randomly with some existing groups in that site), now when I click on the Address Book in the DIP it gives me the popup and also resolves
    the ids.
    Any help would be appreciated.

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/868b7d59-06e7-437f-8a3e-5f49e51c7b8d/people-picker-render-error-in-document-information-panel
    Have you by chance looked at ULS logs or taken a network trace during the time the People Picker control is attempting to be rendered? 
    It seems to be a client-side issue. GPOs have been applied to "secure" Office2010.
    Have you ever heard of GPOs causing such issues? As far as I know the people picker is an ActiveX control. There are two settings in the GPO which have something to do with Active X:
    Active X Control Initialization
    Check Active X Objects
    Windows Internet Explorer Feature Control Opt-In
    Beaconing UI for forms opened in Infopath Filler Active X
    Bind to Object
    If this helped you resolve your issue, please mark it Answered

  • How to update person or group column with peopleeditor control values

    Hi,
    I have created custom aspx page and added "PeopleEditor" control(can select multiple users)  in that page. Now I am trying to update person or group column with peopleeditor control values.I am not getting any error if I select single user
    in PeopleEditor control but getting error if I select more than one user.
    UpdateItem(listItem, "ListColumnName",
    listItem.ParentList.ParentWeb.EnsureUser(peopleeditorId.CommaSeparatedAccounts));
    Can anybody help me out to resolve the issue?
    Thank you in advance!!!
    AA.

    First get all the users/groups from the PeapleEditor by using PeapleEditor.ResolvedEntities
    foreach (PickerEntity pickerEntity in peopleEditor.ResolvedEntities)
    SPPrincipalType principalType = (SPPrincipalType)Enum.Parse(typeof(SPPrincipalType), pickerEntity.EntityData["PrincipalType"].ToString());
    if (principalType == SPPrincipalType.User || principalType == SPPrincipalType.SecurityGroup)
    string loginName = pickerEntity.Key;
    //your code here
    else if (principalType == SPPrincipalType.SharePointGroup)
    string groupName = pickerEntity.Key;
    //your code here
    Add all the users/groups in an instance of SPFieldUserValueCollection
    and then update your list item.
    SPFieldUserValueCollection users = new SPFieldUserValueCollection();
    users.Add(new SPFieldUserValue(web,user.ID,user.Name));
    item["YourUserColumn"] = users;
    item.Update();

  • Formula to populate one Person or Group column depending on the value of another Person Group column

    I am looking for a way to popluate the Account information of a Person based on another column where there name in another column.  I have Two Columns   "Name" which is a Person or Group information type and User Account which
    is also a Person or Group Information type.  When an Invidividuals name is entered into the Name column, I what the User Account column to prepolulate.

    Hi,
    For your issue, you can automatically populate User Information depending on the value of another Person or Group column by connectting with User Information List or  connectting with User Profile Web Service:
    http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=172
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Getting the distinct person or group column from a splist

    Hi,
    I am trying to get a distinct user type column from my splist. customerUserID is my column name which of type "Person or Group".
    I am having multiple entries in my splist. i want to pas  my curentoggedinuser and compare it against the values from the "customerUserID".
     i tried  using the linq ,but it fails.
    can someone pls help whats the code i need to try.
    DataTable dt = items.GetDataTable();
    DataView dtview = new DataView(dt);
    DataTable dtdistinct = dtview.ToTable(true, "customerUserID");
    bool exists = dtdistinct.Select().ToList().Exists(row => row["customerUserID"].ToString().ToUpper().Equals(SPContext.Current.Web.CurrentUser.LoginName.ToString()));
    if (exists == true ) break;
    am trying teh above code,but i am unable to get the distinct value[ i need only one record ].
    but the above doesnt evaluate to true , eventhough ia m having the correct values in my splist.
    Das

    Hi,
    Please refer to the following blog
    https://rmanimaran.wordpress.com/2011/05/20/get-distinct-values-from-a-sharepoint-list-along-with-where-condition/
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • Broken views when including a multi-select Person or Group column

    I have several document libraries that include a column called Author(s) that allows multiple selections of people. In SP2010 I was able to have views that displayed this column with no problems. Now in SP2013
    whenever I try to add this column to a view I get the following:
    Sorry, something went wrong
    Attempted to use an object that has ceased to exist. (Exception from HRESULT: 0x80030102 (STG_E_REVERTED))
    I can replicate the error with new libraries and views as well, so it doesn't seem like something related to the upgrade. I can still enter data into this field when uploading a new document, etc.
    Any ideas?

    Hi Ravi,
    According to your description, my understanding is that When you added a person or group type column with multiple selections to a view in SharePoint 2013, an error occurred.
    To narrow the issue scope,
    Please test with a new site collection and compare the results.
    What types of views have you used? Please also test with different kinds of views and compare the results.
    For troubleshooting, In the library on which views are breaking, convert 
    'People or Group' from 'Name with Presence' to 'Name' only. See if the issue still occurs.
    Here is a link, you can take a look at:
    http://social.technet.microsoft.com/Forums/office/en-US/05144219-aa4a-49d4-b7f6-31d83e7e97c6/sp2013-upgradation-breaks-all-list-views-with-fieldscontent-types?forum=sharepointgeneral
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • User Profile Sync - Fields That Appear Under the "Person or Group" Column

    As I go to add a new column to a list on SharePoint 2010, I notice some fields under the drop down labeled "Show field". Inside that drop down there is a "Test" and a couple others I see in there that I don't notice in the User Profile
    Sync. Forgive me, I've inherited this SharePoint config. Where should I be looking to find these phantom fields or how can I erase them?
    Thank you!

    Those fields are part of the schema for the "Person or Group" field type and are not related to the UPS.
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Restricting People Picker of "Person or Group" column to Site Groups only

    Hi,
    I am working on SharePoint Online 2013 and I have created a column - DocOwner with "Person or Group" type in document library. In the site collection there are 4 groups lets say - A,B,C,D. When user creates a new item (document set), in newform.aspx,
    I want to restrict the people picker of "Docowner" column to only Site groups, as currently it is showing all users who are there in SharePoint online.
    I read this article - http://office.microsoft.com/en-in/sharepoint-server-help/site-column-types-and-options-HA010302196.aspx#_Toc277149829.........where they are saying that we can limit the people picker to site users only.
    How this can be achieved using OOTB in SharePoint 2013 Online ? 
    Vipul Jain

    You can create a workflow to execute CSOM which will verify group membership details and update it to choice column 
    http://stackoverflow.com/questions/23432665/sharepoint-online-csom-associated-site-groups-associatedmembergroup-associatedow
    http://sundarnarasiman.net/?p=497
    namespace GetUsersInGroupCSOM
    class Program
    static void Main(string[] args)
    //Replace it with the url of your tenant or your site-collection
    string SiteUrl = "https://yoursite.sharepoint.com";
    System.Uri oUri = new System.Uri(SiteUrl);
    using (ClientContext oClientContext = new ClientContext(SiteUrl))
    //Replace it with your user id for SharePoint Online
    string UserName = "[email protected]";
    //Replace it with your password
    string Password = "yourpassword";
    //Create a SecureString object from password string, needed for SharePointOnlineCredentials class
    SecureString SecurePassword = GetSecureString(Password);
    oClientContext.Credentials = new SharePointOnlineCredentials(UserName, SecurePassword);
    //Load the site-collection groups using CSOM
    oClientContext.Load(oClientContext.Web.SiteGroups);
    oClientContext.ExecuteQuery();
    GroupCollection oSiteCollectionGroups= oClientContext.Web.SiteGroups;
    Console.WriteLine("List of groups in the site collection");
    Console.WriteLine("-------------------------------------");
    foreach (Group oGroup in oSiteCollectionGroups)
    Console.WriteLine(oGroup.Title);
    Console.WriteLine("\n");
    //Load the users collection in the Group 1
    oClientContext.Load(oSiteCollectionGroups[1].Users);
    oClientContext.ExecuteQuery();
    Console.WriteLine("List of users in the first group of site-collection");
    Console.WriteLine("-------------------------------------");
    foreach(User oUser in oSiteCollectionGroups[1].Users)
    Console.WriteLine(oUser.Title);
    Console.WriteLine("\n");
    Console.ReadLine();
    private static SecureString GetSecureString(String Password)
    SecureString oSecurePassword = new SecureString();
    foreach (Char c in Password.ToCharArray())
    oSecurePassword.AppendChar(c);
    return oSecurePassword;
    http://the-north.com/sharepoint/post/Update-Choice-Field-using-CSOM-%28Client-side-Object-Model%29
    using (ClientContext
    ctx = new ClientContext("http://MyServer/MySite"))
    Field genericField = ctx.Web.Lists.GetById(listID).Fields.GetById(fieldGuid);
    FieldChoice fldChoice = ctx.CastTo<FieldChoice>(genericField);
                    ctx.Load(genericField);
                    fldChoice.Choices = “MyChoice1;MyChoice2;MyChoice3”.Split(";".ToCharArray());
                    fldChoice.Update();
                    ctx.ExecuteQuery();               
    If this helped you resolve your issue, please mark it Answered

  • Workaround to using "Person or Group" field in a "Calculated" column formula?

    Apparently, SharePoint does not allow you to insert a "Person or Group" column into a "Calculated" field's formula.
    Is there a workaround to adding a "Person or Group" column into a "Calculated" field's formula?
    -Maybe a way of coverting the data from the Person or Group column into a text field, and referencing that text field in the formula?
    Microsoft mentions only Columns of the following data types can be referenced in a formula: single line of text, number, currency, date and time, choice, yes/no, and calculated.

    Hi AskMicrosoft,
    Have you tried to use a workflow?
    1 Create a new text column in the list.
    2 Create a workflow and use
    Update item in this list Action > Add the new text column to the value in people and group column.
    Then you can add the text column in calculate formula.
    Hope it helps.
    Best regards. Emir

  • Infopath form for sharepoint 2013 lags when searching for person or group.

    Dear all,
    After implementing a infopath form on sharepoint, the search for person or group column lags when I search for someone the second time. (The first time won't lag). Is there a fix to this? And is there a way to modify the search for person or group function
    to sharepoint OOTB person or group search? I think the OOTB one is a lot better. Thanks all.
    Timothy Liu

    Have a look at this thread which discussed a same question:
    http://social.msdn.microsoft.com/forums/sharepoint/en-US/c55f4245-b2b0-410b-94fc-2afd1ef80da8/preventing-users-from-editing-other-users-infopath-forms
    thanks,
    Flynn

  • How to add users from person or group field in a sharepoint list to sharepoint group

    Hi,
    How to add users(single or multiple) from person or group field in a sharepoint list to sharepoint group programmatically?
    Any suggestions would be appreciated.
    Thank you,
    AA.

    Hello,
    Use SPGroup.AddUser() method to add user in group. I have just written sample code in notepad so it is not tested:
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using(SPSite Site = new SPSite(SPContext.Current.Site.Url))
    Using(SPWeb Web = Site.OpenWeb())
    SPList list = web.Lists["ListName"];
    SPQuery query=new SPQuery ();
    query.Query = "<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Test</Value></Eq></Where>";
    SPListItemCollection items = list.GetItems(query);
    if(items.Count > 0)
    foreach(SPListItem item in items)
    //Get USers from person or group column
    SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users");
    SPFieldUserValueCollection userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Users"].ToString());
    SPGroup spGroup = spSite.RootWeb.Groups[groupName];//group name
    if (users.Count != 0)
    bool isUserInGroup = false;
    foreach (SPFieldUserValue user in users)
    foreach (SPUser item in spGroup.Users)
    string itemUserName = item.LoginName;
    string UserName = user.User.LoginName;
    if (itemUserName == UserName)
    isUserInGroup = true;
    break;
    if (!isUserInGroup)
    spGroup.AddUser(user.User);
    The above code will query list item and then get users from "Users" column. Now it will check whetehr user is already in group not, if not then add user in group.
    http://rajanijilla.blogspot.sg/2012/09/add-users-to-group-programmatically.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Person or Group field not storing data that is entered.

    Hi guys,
    I'm having a bit of a frustrating time trying to import the records of 900+ staff members into a list and then create a view that shows only the currently signed in user.
    Now I've got my list all sorted out lovely and the way we have it set up is that the users payroll ID is their unique ID for everything, their log in for AD and SharePoint. This gives us a nice advantage and I'd hoped that with a column in our list with
    the users Payroll ID we could use that to match the username of the currently logged in user, I was wrong as it will only allow me to use a person or group column.
    MY ISSUE is that when trying to copy the column containing the Payroll ID, which is also the users username in SharePoint, in Datasheet view into the person/group column I get the following error for most of records (some of them do work and contain the
    information correctly).
    "The text entered for Username isn't an item from the list. Select an item from the list, or enter text that matches one of the listed items."
    After getting frustrated at that I then edited our Info Path form for users to modify their details with and added a field that linked to the column. When in the form this field accepts the payroll ID and outputs the users SharePoint name (not username)
    as expected but when saving the form it doesn't update the column.
    Any suggestions?

    I suspect the reason you can't insert the users automatically is that the users haven't visited or been mentioned on that site previously. SharePoint caches user data (in the hidden user information list) on each site collection which means that if you were
    to copy and paste a user who hasn't been on the site before it'll fail to find them in the cache. In normal circumstances using the people picker it'd identify the cache is empty and check for the user in AD but it may be failing for you in datasheet view.
    To confirm find one of the users that failed as part of the C&P, add an entry for them manually, delete it and then re-try the copy and paste.

Maybe you are looking for

  • 2nd hand ipad not showing as associated device on itunes

    Hi All, I bought a 2nd hand Ipad a couple of weeks ago from a shop (all legit). As I'm pretty useless with all things tech they synced most of my pics/vids and music from my Iphone using their computer in-store.  As my Iphone has more space than the

  • Playlists won't play

    itunes 9.0.1 windows 7 clicking a playlist just plays the first song even though the boxes are all clicked. Also can't change the order by drag and drop. Whats up doc?

  • PO approver not notified. Was: Doubt in Authorisation

    Hi, I have created PO. I want to know who are all the apporvers for that. Next i need to find out now approval is pending with which approver. One approver is saying still he not received any notification for a particular PO.(he is the approver for t

  • Adobe Interactive forms error in WD -- Invalid HTTP Connection : ADS

    Hi,   am getting the following error when am trying to create interactive forms in WDA..."Invalid HTTP Connection : ADS" Thanks in advance

  • How come I cannot download whats app on iphone4?

    Would anyone please tell me how to download whats app on iphone 4? Every time when I try to download it, there is a window pop-out and saying,"you request cannot be completed". What happened? many thanks