Sharepoint 2010: user information list Vs user profile

I wrote code for getting user details based on username. I am fetching data from user profile using user profile service. But recently I came to know about "user information list" which stores same data as that of user profile.
So, My question is which will be better choice : user profile service OR user information list to get user information ?

User Information list has limitation, firstly its hidden, it can be viewed only administrators.
Also you will face issue when you migrate your application to SharePoint 2013.
If you want quick way of know who has permissions you can use this list, but sometime you may end up with outdated user profile(properties) information. 
Better try to use User profile service wherever possible.
there is another discussion on this topic here -
http://social.technet.microsoft.com/Forums/sharepoint/en-US/759d3c83-3fed-4bfc-a591-e88ca40e9407/sharepoint-user-information-list
reference-http://www.sharepointchick.com/archive/2009/06/17/user-profiles-and-the-user-information-list-or-userinfo-table.aspx
MCITP: SharePoint 2010 Administrator
MCTS - MOSS 2007 Configuring, .NET 2.0
| SharePoint Architect | Evangelist |
http://www.sharepointdeveloper.in/
http://ramakrishnaraja.blogspot.com/

Similar Messages

  • User profile service not updating 'Title' in user information list

    Hi,
    In our SharePoint farm, following two user profile sync timer jobs are successfully running but not updating the 'Title' in the hidden user information list.
    User Profile to SharePoint Full Synchronization
    User Profile to SharePoint Quick Synchronization.
    Can someone point me to the right direction? Please note that I don't want to use powershell script shown here to update the 'Title' in the user information list -
    http://blog.falchionconsulting.com/index.php/2011/12/updating-sharepoint-2010-user-information/.
    Thanks,
    Manvir
    Manvir

    Hi,
    There are two jobs, User Profile to SharePoint Quick Sync and User Profile to SharePoint Full Sync, that synchronize the User Profile database information with the user information list. Sometimes this stops working (properly) and in that case
    you need to run:
    Stsadm.exe –o sync –listolddatabases 0
    Stsadm.exe –o sync –deleteolddatabases 0
    The first command will display all the databases and when they have been sync’d last.
    The second command will delete the records corresponding to those databases (it doesn't delete databases/end user data).
    Anyways, running this will basically tell the timer jobs that they have never sync’d and force them to carry on as if it’s the first time.
    Go to Central Admin and fire off the User Profile to SharePoint Full Synchronization
    job.
    For detailed information, refer to the following article:
    https://donalconlon.wordpress.com/2012/03/02/sharepoint-user-information-list-is-not-being-updated/
    Best Regards,
    Lisa Chen
    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]

  • Sharepoint 2010 Content Deployemnt Job issue with duplicate fields in User information List

    Hi friends,
    I am facing below issue with the content deployment job.
    It was working earlier. But now since from couple of days all the content deployment jobs in production environment are failing with below error.
    Field name already exists. The name used for this field is already used by another field in the list. Select another name and try again.
    ObjectName="User Information List".
    When I check the fields in User information list in targeted site, I found couple of columns are dupicate like "ask me about",first name","Last name" etc.
    Do i Need to drop target site collection or recreate with fresh content deployment job.
    Please suggest.
    Please help .
    Regards
    Subrat

    Hi,
    According to your post, my understanding is that you got duplicate field error.
    Based on the error message, you can try to use the following code sample to remove duplicate records, and check whether it works:
    http://social.msdn.microsoft.com/Forums/en-US/sharepointgeneralprevious/thread/41ee04bd-91fb-4bf9-932a-bac42c56c357
    Here is a similar issue, you can also use the ‘RemoveDuplicateColumn64’ provided:
    http://sharepointsurfer.wordpress.com/2012/04/27/how-to-fix-publishing-site-content-deployment-error-duplicate-first-name-column/
    What’s more, as you had said, you can recreate a site with a fresh deployment job.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to Update Picture column in User Information List?

    Hi,
    The user updated his profile picture in mysite about 10 days ago. The updated picture is shown on his mysite but the same is not in sync with User Information List. The 2 timer job which takes care of the profile synchronization are scheduled as below:
    Profile Synchronization : hourly
    Quick Profile Synchronization : every 2 minutes
    And both the timer job status are shown as successful, yet the picture url is not updated.
    Can anyone kindly let me know is there any way to update the same manually.
    Please note that the version of SharEPoint is 2007 and Windows server 2003.
    Thanks in Advance.

    Hi Sheetal Lomate,
    It is correct to check the profile synchronization jobs to make sure profile information syncs between user profiles and user information list.
    If it is still not synced, please use the following stsadm command:
    stsadm –o sync –listolddatabases <x number of days>
    If one or more content databases show up in this list, clean up the list, they can be added to the list again:
    stsadm –o sync –deleteolddatabases <x number of days>
    Related reference:
    User Profiles and User Informtation list synchronization:
    http://www.sharepointchick.com/archive/2009/06/17/user-profiles-and-the-user-information-list-or-userinfo-table.aspx
    Thanks,
    Qiao
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Qiao Wei
    TechNet Community Support

  • Validate "work e-mail" from user information list --give me wrong result

    How can I validate the user "work email" from User Information List is working
    properly?
    I am following this >> http://social.msdn.microsoft.com/Forums/sharepoint/en-US/e4d41f77-c7e4-40ef-b85f-de7f972f2a3f/allow-submitter-see-only-the-items-that-are-relevant-to-him-in-drop-down-list?forum=sharepointcustomizationprevious#4d63b721-7acb-463a-b578-87eb1d72b5f1
    But instead to get the correct work email I am getting >>domain \usernamedomain
    \username domain \username  (example: americas\admin_andress_belloamericas\admin_andress_belloamericas\admin_andress_bello)  
    CRISTINA&amp;amp MICROSOFT Forum

    Hi,
    How did you validate the work e-mail?
    I recommend to set another text field to get the email of the user from User Information List and then use the text field for validation.
    Could you please provide an example of your requirement for reproducing this issue?
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • How to add user information list in site page using out of box

    Hi,
        Kindly suggest me any solutions or reference links regarding adding user information list in one of the site pages using out of box.
    Thanks
    Razvi444

    Hello Razvi444,
    it is not clear what you are trying to accomplish, but for your information User Information List could be find under <your_site>/_layouts/15/people.aspx?MembershipGroupId=0. If you would
    like to display all user on the page you need to develop a custom web part and using the aforementioned URL all user could be displayed on your page.
    Or you could also edit the page and insert a link (/_layouts/15/people.aspx?MembershipGroupId=0), set a description. SharePoint will name it people.aspx. After that you could "Edit Source" and rename it accordingly.
    Let me know if this one is helpful.
    Enjoy!

  • CSOM (Javascript) Inner join CAML query on 'User Information List'

    I need to pull site user details like (email, display name, phone) from 'User information list' using a 'inner join' on a different list 'SiteOwners' where 'Contact' is a person or group field.
    The result object is not returning the details from 'User Information List' though it returns details from 'SiteOwners' list
    <script src="/_layouts/15/SP.runtime.js" type="text/javascript"></script>
    <script src="/_layouts/15/SP.js" type="text/javascript"></script>
    <script type='text/javascript'>
    'use strict';
    //$(document).ready(function() {
    function abc() {
    var context = SP.ClientContext.get_current();
    var web =context.get_web();
    var stownrlist = web.get_lists().getByTitle('SiteOwners');
    var camlqry = new SP.CamlQuery();
    camlqry.set_viewXml = "<View>" +
    "<Query></Query>" +
    "<ViewFields>" +
    "<FieldRef Name='Title'/>" +
    "<FieldRef Name='Contact'/>" +
    "<FieldRef Name='UserName'/>" +
    "<FieldRef Name='UserEMail'/>" +
    "<FieldRef Name='UserMobilePhone'/>" +
    "</ViewFields>" +
    "<ProjectedFields>" +
    "<Field Name='UserName' Type='Lookup' List='User Information List' ShowField='Name' />" +
    "<Field Name='UserEMail' Type='Lookup' List='User Information List' ShowField='EMail' />" +
    "<Field Name='UserMobilePhone' Type='Lookup' List='User Information List' ShowField='MobilePhone' />" +
    "</ProjectedFields>" +
    "<Joins>" +
    "<Join Type='INNER' ListAlias='User Information List'>" +
    "<Eq>" +
    "<FieldRef Name='Contact' RefType='Id'/>" +
    "<FieldRef List='User Information List' Name='ID'/>" +
    "</Eq>" +
    "</Join>" +
    "</Joins>" +
    "</View>";
    debugger;
    var stownritems = stownrlist.getItems(camlqry);
    context.load(stownritems);//, 'Include(Title,Contact,UserName,UserEMail,UserMobilePhone)');
    context.executeQueryAsync(
    Function.createDelegate(this, function () {
    debugger;
    var stownenm = stownritems.getEnumerator();
    while (stownenm.moveNext()) {
    var userid, loginname,email,name,mobilephone;
    if (stownenm.get_current().get_item('Contact') != null) {
    userid = stownenm.get_current().get_item('Contact').get_lookupId();
    loginname = stownenm.get_current().get_item('Contact').get_lookupValue();
    email = stownenm.get_current().get_item('ows_UserEMail');
    name = stownenm.get_current().get_item('UserName');
    mobilephone = stownenm.get_current().get_item('UserMobilePhone');
    }), function() {alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());});
    </script>
    Any suggestions / help please.
    Sai

    I identified the issue
    "camlqry.set_viewXml"  is a method (camlqry.set_viewXml()) not a property (as apposed to C#).
    The above should be like "camlqry.set_viewXml(querystring)" instead of "camlqry.set_viewXml =qrystring".
    Sai

  • SharePoint 2010 Central Admin to add users from AD from specific Department

    Dear All,
    I am working on SharePoint Foundation 2010. I have to add users from specific department to a particular site collection.
    Please let me know if there is a way to import users from Active Directory based on the 'Department' filed in
    SPCA.
    Thanks.

    Is that okay if I share the PowerShell code? Do you have access to Active Directory and can you query information?
    Refer this Link
    Code
    # set site collection owner for all sites...
    # 1-2012
    Add-PSSnapin Microsoft.SharePoint.PowerShell
    # $AccountList is an array of Windows Identities in the format of $AccountList = @("DOMAIN\USERID" , "DOMAIN\USERID2")
    $accountList = @(Get-ADUser -Filter {(Department -like '*Ur Needs*')})
    #$AccountList = @("LAB\Jack", "Lab\tom", "Lab\dick", "lab\harry")
    #this gets an array of objects representing the sites at the IIS level:
    $IISSites = Get-SPWebApplication
    Foreach($oneIISSite in $IISSites)
    #using .Sites, we can get a list of the site collections
    foreach ($SharepointSiteCollection in $oneIISSite.Sites)
    write-host $SharepointSiteCollection.url -ForegroundColor Cyan
    $spweb = Get-SPWeb $SharepointSiteCollection.url
    #now we have the website, so lets look at each account in our array
    foreach ($Account in $AccountList.samaccountname)
    #lets see if the user already exists
    Write-host "Looking to see if User " $account " is a member on " $SharepointSiteCollection.url -foregroundcolor Blue
    $user = Get-SPUSER -identity $Account -web $SharepointSiteCollection.url -ErrorAction SilentlyContinue #This will throw an error if the user does not exist
    if ($user -eq $null)
    #if the user did NOT exist, then we will add them here.
    $SPWeb.ALLUsers.ADD($Account, "", "", "Added by AdminScript")
    $user = Get-SPUSER -identity $Account -web $SharepointSiteCollection.url
    Write-host "Added user $Account to URL $SPWeb.URL" -Foregroundcolor Magenta
    else
    Write-host "user $Account was already in URL " $SPWeb.URL -Foregroundcolor DarkGreen
    if ($user.IsSiteAdmin -ne $true)
    $user.IsSiteAdmin = $true
    $user.Update()
    Write-host "$account has been made an admin on $SPWeb.URL" -Foregroundcolor Magenta
    else
    Write-host "$account was already an admin on $SPWeb.URL" -Foregroundcolor DarkGreen
    $SharePointSiteCollection.Dispose()
    Note:
    First uncomment the second $accountlist add the user manually to test
    If you have AD module installed in your SP server you can use
    $accountList = @(Get-ADUser -Filter {(Department -like '*Ur Needs*')})
    Regards Chen V [MCTS SharePoint 2010]

  • How to create Global password and user information list in Linux

    Hi ,
    OS is : OEL, We have some requirement, we need to create global password and Users information, that location sould be accessable to all users, can any one guide me how to do it in Linux.

    Could you give us a little more details? Are u looking for something like a centralized authentication system? or....what exactly?
    kido

  • Workflow SharePoint 2010 -Approval workflow for multiple users

    Want to create a 2010 SharePoint server workflow which will allow me to send email once item is added > Start approval process > if approved then mark workflow status as approved and then send email to reviewer 2 and again start the process of approving
    > and approved then again mark status to approved and send email to reviewer 3 and mark status to approved if approved by reviewer 2 and end the workflow.Also, if the item is not approved by any user, then it should directly log a comment and go to end
    of the workflow.
    I had started as something like :
    Send Email to rev1
    Start approval process for current item with rev1
    if approval status is approved
    set workflow status to approved
    send email to rev2 and so on...everything works but when rev1 rejects the item, then workflow does not go to end of the workflow. One difficult thing is we don't have go to a step option like in 2013 workflows.
    I don't know how to move on as when I try to execute the logic, all three approval process(for 3 reviewers) run even if item is rejected .....Please help

    Check these links
    https://slingeronline.wordpress.com/2013/02/27/setting-cancel-on-first-rejection-on-an-spd-workflow/
    http://sharepointduffbert.com/2014/06/17/getting-an-spd-approval-workflow-to-cancel-on-rejection-or-change/
    https://social.msdn.microsoft.com/Forums/office/en-US/c212e5d7-f7bf-4f17-be16-374e02652dbb/reject-stop-workflow-not-working?forum=sharepointcustomizationprevious
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/a2d0a259-f8ca-48cf-b9ab-0c9387329502/sharepoint-designer-workflow-how-to-jump-back-to-previous-workflow-step?forum=sharepointcustomizationprevious
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Creating cascading drop down boxes in SharePoint 2010 using one list

    We have a support request form tied to a list that end users input data into which when submitted sends out an email.
    Is it possible to create a drop down box on the form that limits the choices in the "subcategory" column, based on what is chosen in the "category" column.  
    For instance in the category column we have SharePoint, Oracle, and Web Tools as choices. 
    In the subcategory column we have items related to each category. We only want items that are related to the selected choice to appear in the subcategory drop down box. 
    I see examples in InfoPath using "Multiple Lists" (one list for city, one for state, etc), but nothing using the same list.  I would rather not use multiple lists if possible. 
    Anyone have any ideas?  Thanks.

    Hi,
    According to your post, you want to create a cascading drop-down list box using one list.
    To achieve what you want, we can:
    Create two fields(category and subcategory) in drop-down list box type in the form in InfoPath.
    Add the list which contains the values of the category and subcategory columns to the form as an external data.
    Right click the category field, click Drop-Down List Box Properties, and choose Get choices from an external data source.
    Choose the list added in step2 in Data source, click XPath behind Entries, click the category column in the list, select Show only entries with unique display names.
    Right click the subcategory field, click Drop-Down List Box Properties, and choose Get choices from an external data source.
    Choose the list added in step2 in Data source, click XPath behind Entries, click the subcategory column in the list, then click Filter Data.
    Click Add, select the category column in the list in the first box, select is equal to in the second box, choose select  a field or group in the third box, then choose Main in the Fields and select the category field in the form.
    Click OK.
    Best regards.
    Thanks

  • How to edit Information of a user in sharepoint 2013.

    hi,
    i am trying to update user information in sharepoint 2013.but the user information form is uneditable ,
    when i click on Edit item link the window pop up with only attachment field.
    how to enable the fields on form?
    any help would be appriciated.
    Thanks !!!

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/53c1e539-891e-4400-83e0-100cd44c52eb/editing-the-user-information-list
    If you disable the my site function, it won’t bring you to the my site.
    For more information about disconnect the USER Profile Service, please refer to
    http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/f012d1b0-3605-4124-8695-9afda112ecd8
    But
    Even though you can go to the display/edit form of the user list, you also can’t edit the information.
    Hope this helps
    Also check
    http://blog.falchionconsulting.com/index.php/2011/12/updating-sharepoint-2010-user-information/
    http://sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?List=daba3a3b-c338-41d8-bf52-cd897d000cf3&ID=65&Web=dbb90e85-b54c-49f4-8e97-6d8258116ca0
    If this helped you resolve your issue, please mark it Answered

  • List with user data from User Profile Service

    Hi there!
    I got SP intranet site up and running with more then 2000+ users on it.
    User Profile Services is getting users attributes from Active Directory.
    How can i make a list with all of those users and columns like Department, Manager, Office number, etc.. 
    After that i'm going to apply a filter by current user department.
    I would really appreciate some offer.
    Thanks!

    There is a sharepoint hidden list called User Information List , if you want to filter by current user department I recommend that you use ser search API and search People using SourceID 
    public static ResultTable SearchUsers(string query,int limit,string [] selectproperties)
    KeywordQuery kq = new KeywordQuery(SPContext.Current.Site);
    //select properties
    foreach (string property in selectproperties)
    kq.SelectProperties.Add(property);
    kq.SourceId = new Guid("B09A7990-05EA-4AF9-81EF-EDFAB16C4E31");
    kq.QueryText = query;
    kq.RowLimit = limit;
    ResultTableCollection results = new SearchExecutor().ExecuteQuery(kq);
    return results.Filter("TableType", KnownTableTypes.RelevantResults).FirstOrDefault<ResultTable>();
    you need to pass the query Department:CurrentUserDepartment and to get current user department 
    UserProfileManager manager = new UserProfileManager(SPServiceContext.GetContext(SPContext.Current.Site));
    UserProfile currentUser = manager.GetUserProfile(SPContext.Current.Web.CurrentUser.LoginName);
    string department=currentUser["Department"].toString();
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • User Profile email address not updated on Site Collection User Information

    Hi All,
    Ok here we go....SharePoint 2007 with SSP profile sync not enabled, however I have a few profiles I need to update (email address).  This has been completed by editing the user profile in SSP, but when viewing the information via Site Collection >
    People & Groups > User Information "Work E-mail" is still showing the old one.
    All alerts are still being sent to the old email address, SSP DB UserProfile_Full shows the new email address as per SSP.
    Anyone know where else user profile emails are stored which is used by Exchange?
    Many Thanks, Roger

    As per the following post from GuYuming
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/319d5b0e-336a-4815-9ee5-5d1685db867f/how-to-send-sharepoint-alerts-to-users-on-different-domain?forum=sharepointadminlegacy
    After the email address in SharePoint user profile is updated to [email protected], you have to wait until
    they are synchronized into the user information list in SharePoint site collections so that alert can be sent to that address. For detail, please read http://vspug.com/mirjam/2009/06/17/user-profiles-and-the-user-information-list-or-userinfo-table/ and http://blogs.technet.com/paulpaa/archive/2009/10/01/user-profile-information-not-updated-on-site-collection-s-people-and-group.aspx
    --Cheers

  • SharePoint 2010 question about alert to external user

    Any ideas about how to implement an alert within SharePoint 2010 that would cause an alert to be sent to a user outside of one's organization when the value of an "Assigned To" column within a list is set to that external user's e-mail address?

    It should just work. Make sure to check your mail flow (e.g. Exchange server transport logs) to validate the mail is leaving the organization. Also make sure that the user that it is Assigned To has an email address assigned to them in the User Information
    List (for their User account).
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for