7

When an authenticated user, whom has never visited a site collection, first visits a site there are a number of tables within the Content database which must be updated. The SharePoint Content database’s UserInfo table stores user specific information about an authenticated user and this information and really acts as a cache which is updated periodically. ...


6

This might be a long shot, but in SharePoint 2003 I remember some web parts needed the user to have visited the site collection / site / page before the information became available. In other words, ask User 2 to visit the page.


5

I suppose _vti_bin/ListData.svc and _vti_bin/client.svc (_api) endpoints have different logic for permission checks. I can reproduce your problem, while logged as a site admin I can access the list, but not as a normal user: _api/web/lists/getbytitle('User Information List') What I also have found in the result, is a new (third) link to that hidden list: ...


4

The User Information List is alive and kicking in 2010. Whether using it makes any sense in your case would depend on what you mean by "this sort of user data".


4

Your best bet would be to remove that field/column from the Public view and all other views where you dont want to see it. If you still want to see the value, create a calculated column which extracts the value from the lookup column and displays that. use the =TEXT calculated column Hope this helps.


3

I ran the same script and it works well. if $UserList is null, that may mean the Title of the User Information List may have been modified. You can confirm that by browsing this Url: http://yoursite/_catalogs/users/simple.aspx. Alternatively, as suggested by @garglblarg, you can use SPWeb.SiteUserInfoList directly. SPWeb.SiteUserInfoList property


3

To access the UserInformationList you need to directly call for it instead of using <SPWeb>.Lists[<listTitle>] like: $siteUrl="http://mysite" $web = Get-SPWeb $siteUrl $userList = $web.SiteUserInfoList;


3

If you have SharePoint Server, implementing the User Profile Service will take care of this for you. If you're using SharePoint Foundation, there is no out of the box method to update these other properties automatically. You would need to implement a pull from Active Directory to the UIL property for each user in the Site Collection. An example of that can ...


3

I am getting this Error when I am updating the SPItem as below: NOTE: the Web object is initialized through SPControl.getContextWeb(context); this.Web.AllowUnsafeUpdates = true; this.spItemObeject.Update(); this.Web.AllowUnsafeUpdates = false; so i finally changed the code as below its worked fine: spItemObeject.Web.AllowUnsafeUpdates = true; this....


3

It's because the All Users is List and only Administrator has permissions to view it. If you want work under users identity not elevated to administrator, you must set at least view permissions for all users. In JSOM you cannot run script under Elevated Privileges. For set permissions use this link for All Users List: https://c.sharepoint.com/_layouts/...


2

Check the GetUserProfile from UserProfileManager. You get the whole object, should be the right spot to search for a list of all custom properties.. i'm working on an almost simliar webpart.. im trying to display only a couple of custom properties.. hope to help http://msdn.microsoft.com/en-us/library/microsoft.office.server.userprofiles....


2

First of all never ever use LINQ in this way in SharePoint! You will retrieve the full user information list from the database when hitting the .Items property! Instead use a CAML query to "search" for the users using the SPQuery object. I would recommend that you use the U2U CAML Query builder to build your query - using that tool you will get the correct ...


2

Each site collection has its own collection of users. My guess is this is happening because the user belongs to multiple site collections and just happens to have the same ID. Check to make sure that there are no other site collections in the same content database that have users with the same ID.


2

Users have permission to read other users details. If you take the non-admin user, and have them click on a user name someone in SharePoint, like the Modified by of a list item, the user can view the editors profile. The actual list view, or URL in _catalogs, might be restricted, but the data within is not.


2

There isn't really a way around this with your company policy. When dealing with records from a user who is no longer there, it is better practice to deactivate their AD account rather than delete it. This would allow the user's profile to remain and you wouldn't have this issue. However, since you are deleting users from AD, you could take a different ...


2

Can you describe WHY you want info in the User Info List? Generally you sync with the User Profile Service and leave the User Info List alone. I think you don't understand the architecture. There are many great guides on the topic, the best by far is Spence Harbar's: http://www.harbar.net/articles/sp2010ups.aspx It says 2010 but applies to 2013 as well. ...


2

You should just need to mark the User Profile Property as Replicable. If you can't get it let me know and I'll post code as an answer. You also have to update content on the target site collection? Your users have to be "Active" for the replication to work.They have to interact with the site by adding content or some other interactions. There is a hidden ...


2

I figured it out. This was a problem of case. The correct line for Job Title is var curUserJobTitle = users[i].jobTitle; For those interested I found the correct property name by adding the following var keyNames = Object.keys(users[i]); for (b = 0; b < keyNames.length; b++) { console.log(keyNames[b]); just under for(i = 0; i < users.length; i++...


2

Don't do it. That's a system list and managed by SharePoint. If you mess with it one of two things will probably happen: SharePoint will simply overwrite your changes You will break the site Whatever end goal you're trying to accomplish, there's a more supportable way to do it than editing the user info list.


2

That is because users get new IDs on each Site Collections. A user might have ID 173 on one Site Collection but ID 46095 on another. If you have sites located at the /sites managed path, then that is a new Site Collection and not a sub site, thus the user might have another ID. To understand why there is changes in user ID you should know something ...


1

It seems that you have duplicates in User Information List which is by the way one in each site collection and all user information are stored in this list. It can happen if you switch from Windows Authentication to Claims Based Authentication on web application sometime later (for example if you migrated from older version of SharePoint). You can list all ...


1

You can achieve using workflow. The current item Author manager and departments only can be fetched from the user profile. In the workflow, You have to make REST call to read the user profile, get the manager login name and [%Workflow Context:Current Site URL%]/_api/sp.userprofiles.peoplemanager/getPropertiesFor(@v)?@v='[%Variable: loginName%]' Add a ...


1

You can use the EnsureUser method of Web object by referring this article. Here is the sample code which will check if the user exists (and return the SPUser object), if it doesn't, it will add the user and then return the SPUser object in JSON: $.ajax({ url: "http://<site url>/_api/web/ensureuser ", type: "POST", data: "{ 'logonName': 'i:...


1

Obviously I am late to this party... But I wanted to figure this out as I needed it for a domain migration that was having some issues, I believe as it was pointed out the main problem for @Amit Tyagi was a permissions issue, I edited his code above and ran it with the SharePoint Farm Administrator account that had local Administrator privileges below is the ...


1

using (SPSite localMySite = new SPSite(_mySiteLocal,userToken )) { SPServiceContext localContext = SPServiceContext.GetContext(localMySite); UserProfileManager localProfileManager = new UserProfileManager(localContext); UserProfile localUserProfile = localProfileManager.GetUserProfile(currentUser); HttpContext currentContext = HttpContext....


1

Try this code: private void updateUserProfileChanges(string accountName) { string localLastUpdateDate =""; SPSecurity.RunWithElevatedPrivileges(delegate { string centralAdminUrl = SPAdministrationWebApplication.Local.AlternateUrls[0].IncomingUrl; using (SPSite ca = new SPSite(centralAdminUrl)) { ...


1

Going to shamelessly plug my blog: To get the current user information in SharePoint Online, You can use the REST API to get UserProfile properties: http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html Or you can use the JavaScript CSOM: http://www.vrdmn.com/2013/02/sharepoint-2013-working-with-user.html Hope this is helpful


1

Using SPServices' GetCurrentUser function you can get all sorts of fields on the current user. Straight from the documentation, here is an explanation of how it works(which BTW I think is brilliant): How It Works The SPGetCurrentUser function does an AJAX call to grab /_layouts/userdisp.aspx?Force=True and "scrapes" the values from the page ...


1

Microsoft decided for some reason to have a predefined undeletable attribute (column) 'Title'. As this shows up everywhere (visible to the user) by default (if you don't suppress it, which you can), many people use this as 'Name' instead of properly defining a name field (which is bad if you ask me). You / your programmer however defined a real 'Title' ...


1

The People Picker does query the UIL along with authentication resource it is configured against. It will also query the User Profile Service. To restrict users to only pick from users added to the Site Collection, see Peoplepicker-onlysearchwithinsitecollection: Stsadm property


Only top voted, non community-wiki answers of a minimum length are eligible