Tag Info

Hot answers tagged

8

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 ...


7

This is a pretty old thread so you've probably already figured this out but for the sake of helping to close it out, here's one way you could solve the problem (there are others): $profiles | ForEach-Object { $vals = $_.GetEnumerator(); $hash = @{}; foreach ($val in $vals) { $hash[$val.Key] = $val.Value } New-Object PSObject ...


7

The function below will get you the UserProfile based on the accountName public static UserProfile GetUserInfo(string AccountName) { UserProfile profile = null; SPServiceContext serviceContext = SPServiceContext.Current; UserProfileManager profileManager = new UserProfileManager(serviceContext); if (AccountName != string.Empty) { ...


5

It is not possible to add event handlers to the user info list. Please see this following thread: http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/81aae5ef-9621-48c5-ad52-706e5d6a0f05 That was me asking the question.


5

Theres not much stuff out there regarding User Profile upgrade yet, but technet dont report any specific considerations beside if you use choice lists, you should remap these later to Managed Metadata Service tags if you choose in-place upgrade and if you use db attach (recommended) you should create MMS before so it can be mapped during upgrade. Remember ...


5

SPUtility.ResolvePrincipal can do this - but I can't guarantee that it'll be fast. It should be something like: SPPrincipcalInfo user = SPUtility.ResolvePrincipal( webApp, null, "email", SPPrincipalType.User, SPPrincipalSource.Windows, true); UserProfileManager profileManager = new UserProfileManager(serviceContext); if ...


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

Have you enabled "replicable" on the field properties? If this isnt enabled, the properties are not propagated to the hidden user list Edit: if you look at this post, it seems that not all user profile types are propagated. Change one of the properties to TEXT just to test if this is the cause of this.


5

You can try this if I understand you correct? Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.LoginName; or HttpContext.Current.User.Identity.Name and Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.ID; hope this helps :)


4

If you are using regular WSS then you would need to go to the User Information list (Site Actions, Site Settings, People and Groups, All People), select the user and edit their display name. You would need to do this on each Site Collection since there is no centralized profile. If you are using a version of MOSS you have the ability to change go into the ...


4

This will give you all profiles, without restrictions: var serviceContext = SPServiceContext.GetContext(site); var userProfileManager = new UserProfileManager(serviceContext); foreach (UserProfile userProfile in userProfileManager) { // ... } This operation in itself is not super costly, but retrieving individual user profile properties can be. ...


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!


4

It is not possible to configure the user profile synchronization service to import users from other sources than the built in synchronization sources (AD DS, Novell, Tivoli....) I dont think it is possible to write your own synchronization connection - there are absolutely no documentation, and after having poked around i reflector for days i found no where ...


4

I think in the case of the User Profile Service Application databases the recommendation is to replicate, rather than propagate these between farms. I don't think you can attach a User Profile database from one farm to another. If your user profile data is mainly coming from Active Directory I would suggest you just re-import the AD profiles in the other ...


4

If you look in your web.config you'll see which FBA SQL database is being used. This is a standard SQL Database that you can Query from using any SQL tool, Including Excel.


4

I think it is a known side effect when installing June CU. You can either uninstall .Net 4.0 or force FIM to use .Net Framework v2.0 It is explained here in detail: http://blogs.technet.com/b/patrick_heyde/archive/2011/07/02/sharepoint-2010-junecu-2011-available-side-effect-info-amp-solution.aspx


4

Take a look at Property Class There are two types of user profile properties: Regular - Defines the property data type and the corresponding user profile flags. Section - Property that serves as a separator for user interface grouping purposes. In order to move properties 'into' section you just need to reorder them. I am providing a ...


4

Here is simple code example to get you started: Add-PSSnapin Microsoft.SharePoint.PowerShell $siteUrl = "http://mycoolsite/" $accountName = "MyAccountName" $site = Get-SPSite $siteUrl $context = Get-SPServiceContext($site) $pm = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($context) # If user profile doesn't exist create new one ...


4

I had the same issue. But I solved it as Toni Frankola said. May be you did wrong steps to add permissions to the user profile service. Look at this post to be sure that you added these permissions correctly.


4

Use some powershell like $url = "http://sp2010/" $site = Get-SPSite $url $context = Get-SPServiceContext $site $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context) $profiles = $profileManager.GetEnumerator() while ($profiles.MoveNext()) { $userProfile = $profiles.Current $name = $userProfile.DisplayName ...


4

The master page of the mysite is the normal v4.master and doesn't load any user profile. There is a web control in every article page in the mysite that makes sure the profile gets loaded. <SPSWC:ProfilePropertyLoader id="m_objLoader" LoadFullProfileOfCurrentUser="true" runat="server" /> If you like to get this done in the masterpage you need to add ...


3

I get this a lot, just not consistently. A page refresh will sometimes sort it out. I've taken to just using the "runas" command to avoid using "Sign in as Different User" and the associated issues. runas /user:{Domain}\{UserID} [/savecred] "C:\Program Files\Internet Explorer\iexplore.exe [Optional URL]" You can create shortcuts on your desktop to make ...


3

You can use the GetUserLoginFromEmail operation of the UserGroup Web Service to get the domain\username login information from the email. Then use GetUserProfileByName to grab the profile, as Lori mentions above. Take a look at my jQuery Library for SharePoint Web Services if you'd like to do all this client side with jQuery. M.


3

This problem is down to the disconnect between the UserInfo table and the Profiles. WSS only uses UserInfo table, hence the core platform in the team sites etc relies on this. When you do a profile sync the UserInfo table is updatedd, but (and here the problem) if the User is identified as active. (i.e. they have actually contributed something to a ...


3

When the user's name was changed was a new account created or was the display name on the old one changed? Since SharePoint's profiles link to the SID of each account a new account would have a new SID and there would officially be two accounts in SharePoint. When you resolve them in people and groups with the new name, you are pointing to the new account. ...


3

Contrary to the accepted answer, there's a number of ways to accomplish this using out-of-the-box SharePoint 2010 features. You can allow certain users permissions to manage any user profile in the system by granting them Manage Profiles permissions in Central Admin. You can find more info on TechNet: Assign administration of User Profile service features ...


3

Just as you say - you cannot use the UPA in Standalone configuration. You need a server Farm setup. I wouldn't even try a workaround with UPA on standalone - enough trouble getting it rollin on a farm already :-) Configuring a server farm does not take much more time or problems compared to a Standalone, esp if its a demo or dev box. Almost the opposite - ...


3

Quotes from relevant source: http://www.harbar.net/archive/2011/02/10/account-deletion-and-sharepoint-2010-user-profile-synchronization.aspx ..during the first incremental synchronization after the accounts are deleted from AD, the user profiles will be marked for deletion in the Profile database. In order to actually delete the profiles, we ...


3

This is a stretch, but I think you could do it using the LDAP Import from LDIF. LDIF is just a flat file format, but it's pretty simple. I'm sure you could expose your user data as LDIF. There are more details on TechNet and a summary on a technet blog post.


3

you can run SharePoint (no matter 2007 or 2010) w/o UPS Service. In that case you will have "simplified" profiles containing only basic params: login name, name, email... No any additional configuration steps required to work that way. Btw, SharePoint Foundation Server uses this model by default (there are no UPS Service at all)



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