Tag Info

Hot answers tagged

9

Gary Lapointe and Mathew McDermott recently published an article on this topic in SharePointPro magazine. It is available online here: http://www.sharepointpromag.com/article/sharepoint/monitor-sharepoint-user-profile-changes-129846 Synopsis of the article: First you enable logging via the STSADM tool (no PS available for this) stsadm -o ...


5

Browse to the User Profile service application and select the manage user properties link. From here, find the mobile number field and select the edit item from the item context menu. Once in there, scroll down to the Display Settings section and check the "Show on the Edit Details page" option. You may also want to check the "Show in the profile ...


5

Finally I figured it out. UserProfileManager internally checks HttpContext.Current.User to determine if current user can view property value. The trick is to replace context and user (if HttpContext.Current.User is null, null reference thrown in UserProfileManager constructor, so this is required). The final code looks like this one: ...


5

You cannot change any properties in the User Profiles via client OM code (neither .NET nor via JavaScript) with the exception of the user's profile picture. MSDN - Work with user profiles in SharePoint 2013 Not all functionality that you find in the Microsoft.Office.Server.UserProfiles assembly is available from client APIs. For example, you have ...


4

You need to get a user profile object and once you have the object you can access the profile's properties, including the custom ones. For example: UserProfileManager upm = new UserProfileManager(SPServiceContext.GetContext(site)); UserProfile p = upm.GetUserProfile("accountname"); object value = p["propertyname"][0];


4

To set the Manage Profiles permissions do as follows: Go to Central Admin Choose Application Management > Manage Service Applicatrions Select the User Profile Service Application (do not click the link) Click Administrators in the ribbon Add the user and set the Manage Profiles permission for it Click OK Your done!


3

You should check if the user exists with before you ask for the profile: if ( profileManager.UserExists(_userName) ) { user = profileManager.GetUserProfile(_userName); } It might also be a good idea to check if the login is valid (eg. the user has logged in before). You can use EnsureUser() for this SPUser user = site.RootWeb.EnsureUser(_userName); ...


3

Sharepoint 2010 has the ability to log just about everything ranging from your dog barking to the server has crashed. Not all of it as activated by default though. Have a look at Monitoring > Configure diagnostic logging in your Central Admin. Under SharePoint Portal Server there are a couple which you need to tick: SPS People User Profiles Personal ...


3

Take a look at my answer provided here: SharePoint 2010 - Change order of User Profile properties Section is just another profile property and it is not a container of properties. Basically you can go over properties, find desired section property and then read properties until you find another section property. Addition I have manage to make one simple ...


3

I wrote a simple js urlrewriter for it and added it to the master page. $(document).ready(function () { var originalURL = document.URL; var url = document.URL; if ((url.indexOf("userdisp.aspx") != -1) && (url.indexOf("Force=True") == -1)) { if (url.indexOf("?") != -1) { var mainurl = url.substring(0, ...


3

Open ADSIEdit and open the properties of a user in your environment that has this information completed. Scroll down the list of properties until you find the one that has that information in it. Once you find it, look at the property name. It often is not what it is labeled in the ADUC forms. This is the name of the property you want. Once you have this ...


3

You can change the account by running the stsadm -o migrateuser command: http://support.microsoft.com/kb/953131 This will rename the userid in the UserInfo table in your content databases to the new userid. If that doesn't work try looking at your user profile service application. Every hour a timer job runs that syncs user information from this service ...


3

Not really - the User Profile properties aren't stored in a list (which is where Event Receivers are registered) - they're all stored in the User Profile Database which is managed by the User Profile Service Application. If you want to sync profile changes with an external system, you can write a Timer Job to look up the user profile properties and ...


3

As James said, you could create a timer job to sync profile changes with the external system. But, to detect the changes in user profile properties, I would suggest you to look into UserProfileChangeCollection because it contains a complete log of changed user profiles. using (SPSite site = new SPSite("http://server1")) { ...


2

If you edit your profile, there are a bunch of checkboxes toward the bottom of the items you are following. Those are the only options you have to configure.


2

The usual suspect is proxy address (single value field) as this is actually mapped to proxyadresses (multi field). Consider mapping to SIP address instead. Some of the other fields are not typically mapped to AD since they are often mapped to taxonomies.


2

Add a custom profile property "ProfilePic2" (not sure if you can have it be of type image, or if it would have to be a link to an image library) Central Admin -> Application Management -> Manage Service Applications -> Your Profile Service Application -> Manage User Properties -> New Property Create a custom web part that displays the image ...


2

You could do this by creating a custom or modified OOB web part that you inserted on the page. You would need to relate a person to this person, for example by adding a Person property to the user profile called BusinessContact and retrieve it using a fixed keyword query in a content query web part.


2

Make sure the 'Allow Users to Edit This Property' is selected, and it'll become available in the Edit Profile screen for users (this is in the Create or Edit Properties window, within the User Profile Service Application).


2

Yes, you can use PowerShell to export the definitions and then import them back in to another environment. Gary Lapointe has some examples for 2007 http://blog.falchionconsulting.com/index.php/2007/11/user-profile-properties/ or you can roll your own. Here is a CodePlex project too: http://mossprofilereplicate.codeplex.com/ M


2

You can modify it by affect properties of corresponding div (look at my example): Please note the id of the target div and the modified width (I've done it with IE dev tools). Also note the BR tags - it's the reason for undesired spacing. I suggest to add to page the hidden Content Editor Web Part and add a script inside it to modify this div content on ...


2

In addition to merging the user profiles in Thomas Vochten's response using stsadm -o migrateuser and ensuring the user profile sync is running as mentioned by QuinnJohns, you will want to make sure that the content database's current status is set to online. If it is set to offline, the timer job that syncs the user information list will not run for those ...


2

Found my problem... Instead of a full crawl on the content source, I did an incremental crawl. Silly me... So it worked all along


2

You can configure the property to show in their profile if you want to show it there. Another option would be to load it into a user control added to the masterpage or a web part to display it on selected pages. You can then configure it to display the message you want to show. Accessing the data is done through the UserProfileManager and UserProfile ...


2

So, by turning off replication, that means it won't update the field anymore. That column and data will still live in the user information list on each site collection. If you truly want it gone, you will need to write some code (.net or powershell) to remove that column in the user information list on each site collection.


2

here is the step by step: Review the import logs, see if it is really getting all the data from the profiles (and check in AD if the user that has no Org Chart on his profile if he has a Manager or not, or if he has more/less data than the other users.) If there is trouble importing information from AD, you account connecting to AD might not have access to ...


2

If you need Cost Center in the user info list, you have to mark it as Replicable in the User Profile Service Application. I never use the User Info List for these types of solutions, I always use Search, it is significantly faster and more scalable. You have to: Crawl your user profiles. Promote the People: Cost Center property to a managed property ...


2

Instead of reloading the page I would suggest that you implement some actual error handling in that function. So instead of: function onRequestFail(sender, args) { window.location.reload(); } You should consider doing something like this: function onRequestFail(sender, args) { // Add OOTB status message to the page. var status = ...


2

This is definitely not a good practice. As someone has already pointed out, if the request keeps failing, you'll end up with an infinite loop. You said you don't know why the request sometimes fails. In order to investigate the underlying cause, the args arguments has all that you need: function onQueryFailed(sender, args) { console.log('Request ...


2

You can iterate through all user profiles and update them. The PowerShell script can look like this: [void][reflection.assembly]::Loadwithpartialname("Microsoft.Office.Server"); Add-PSSnapin Microsoft.SharePoint.PowerShell $site=Get-SPSite "https://yourSitecCollection" $serviceContext = Get-SPServiceContext $site; $upm = new-object ...



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