Hot answers tagged

6

Looks like I found the answer.. $MySite = Get-SPSite "$site" $context = Get-SPServiceContext $MySite $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context) $profilemanager.properties | ft name,displayorder $profileManager.Properties.SetDisplayOrderByPropertyName(“userpropertyname”,1) $profileManager.Properties....


6

You can perform the following to resolve the issues: Make sure User Profile Synchronization service is running In the user profile service application make sure "Profile Synchronization Status" is not stuck in synchronizing state. Start a full User Profile Synchronization Re-add forest and make sure the password of the account used for synchronization isn'...


4

based on your statement, it looks like the user profile sync is not happening properly. follow the below troubleshooting steps: Try doing a sync manually meaning re-importing. that should clear the problems. Inspect the log entries Make sure timer services and user profile sync services are running properly. Also, additionally make sure the account used ...


4

The issue is that your Forest Name and NetBIOS name are different. You have to follow the guide from Spence Harbar: http://www.harbar.net/articles/sp2010ups.aspx . It was written for 2010 but still applies to 2013. After you create the UPA and before you import profiles you have to set NetBIOSDomainNamesEnabled to true. $upsa = Get-SPServiceApplication –Id ...


3

You should use SP.UserProfiles.js to get user profile properties. Example: var personProperties; // Ensure that the SP.UserProfiles.js file is loaded before the custom code runs. SP.SOD.executeOrDelayUntilScriptLoaded(getUserProperties, 'SP.UserProfiles.js'); function getUserProperties() { // Replace the placeholder value with the target user's ...


3

I think you can face problem as sometimes the profile synchronization timer job does not correctly synchronize the changes in the User name and Account name information. You need to execute the following Move-SPUser command (an equivalent of the STSADM MigrateUser command) for the user account in order to update the account name in SharePoint: Move-SPUser ...


3

You can use this REST endpoint: https://<server>/_api/sp.userprofiles.peoplemanager/getPropertiesFor(@v)?@v='domain\LoginName' This retrieves all profile information for the given LoginName. You can select the property PersonalUrl by adding $select = PersonalUrl For more information see the User profiles REST API reference at MSDN.


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

To check what's the URL of the personal site of a user. Follow below steps Login to SharePoint admin center Go to User profiles > Manage User Profiles > Search for your user Go to edit profile page. Check what's in Personal Site. If you want to delete user's personal site then use following command Connect-SPOService -Url https://contoso-admin....


3

Your code is fine. I would not attempt to circumvent the problem as it may be telling you that there is in fact something wrong with your setup. There are many reports (I've experienced this myself) where the User Profile Service is throwing exceptions and needs to be brought back to full health. e.g. Go to Central Admin -> Manage Web Applications. ...


2

Recently I had similar but no the same issue: one user get married and changed her surname. Admins changed her Active Directory login name. The only problem we faced was with Project Server 2013 in Project Permission Mode - I had to add user manually to Security Group. All other permissions etc was intact. Web app was in claims mode. But what happens if ...


2

You need to type in search query in the Find profiles field and click Find in order to see any profiles. * is not possible, but if you type in part of the domain, you should get all users, e.g., if user accounts are DOMAIN\user, you could search with DOMAIN to get all users. Pretty close to *, I'd say.


2

Yes this issue fixed in SP2. You dont need to apply the WSS sp2, simply Install the SP2 for server and if you have any language packs installed then SP2 for lps also required. After that you have to run the config wizard on the all server in the farm. Now make sure the server is uptodate, none of the database(content, services & config) says upgrade ...


2

that is really tough question to answer. You have to check the ULS logs and Event Viewer during the time when it stuck. I would do following things( i hate AutospInstaller) Delete the User Profile service check the Certs store on server, make sure no SharePoint/FIm certs over their, if any delete them.check this check the central admin > monitoring and ...


2

I reconfigured the peoplepicker and it worked like a charm. $wa.PeoplePickerSettings.SearchActiveDirectoryDomains.Clear();


2

With the March 2016 CU, this definately is not occurring. The PictureURL value, after uploading and saving to an alternate user, shows with the correct identity for the MThumb URL (which is what is displayed in the UPSA).


2

The user object needs to exist in a UIL. That's the primary responsibility of stsadm/Move-SPUser: to migrate users within the UIL to the new identity. The User Profile Service can, in certain scenarios, automatically migrate a user when it has detected a change, but from the sounds of it, you don't need to do any work for this particular user.


2

You could use try catch. If it always crashes. Not the cleanest way of handling it but this should do it. But I would call this a quickfix. SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(SPContext.Current.Site.Url)) { SPServiceContext ctx = SPServiceContext.GetContext(site); try { ...


2

Based on the error status, SharePoint is saying no personal site exists for the user. Did you check whether Mysites is properly configured and you are able to access the page? I have faced the same issue and resolved it by recreating the User Profile in my dev UPA You can also try some of the solutions proposed here https://social.technet.microsoft.com/...


1

Try Patching your SharePoint servers. I am working on a project for a customer now and after we patched all of our SharePoint Servers to SP1 and November 2015 CU the service now starts without any issues. You can find your servers patch level by going to: yourcentraladminaddress/_admin/PatchStatus.aspx Macth your SharePoint Servers build numbers on this ...


1

I confirm that the installation of February 2016 CU for SharePoint Server 2013, solves the issue, I've just finished testing: February 9, 2016, update for SharePoint Server 2013 (KB3054818) https://support.microsoft.com/en-us/kb/3114726 Improvements and fixes After you migrate from classic-mode to claims-based authentication in SharePoint Server 2013, you ...


1

It depends what kind of Bad data you are talking about. But typically when you run a Full Sync of the User Profile Services followed by Incermental Sync, it automatically remove the bad data / users. may be you can try to place some filter.


1

I have below solution to get UserId from Login Name using REST API. http://<site url>/_api/web/sitegroups(<group id>)/users(@v)?@v='<login name>' http://<site url>/_api/web/siteusers(@v)?@v='<login name>' here @v have different type of value like 1) i:0#.f|membership|user@domain.com …/users(@v)?@v='i%3A0%23.f%...


1

initially & during the first time configuring the user profile service application, SharePoint will ask you to select the synchronization instance for the SharePoint Farm and you will have to select only 1 machine in the farm even if you have multiple servers running!!


1

User profile service can be started on multiple server but user profile syncnorization service should be started on one server. Further u have to check the uls logs for the clue why it's stoped...also check event viewer.


1

Use search to get all the users. Make sure you define some kind of sorting. C# on-prem sample: private static DataTable GetPeople(SPSite spSite, string queryText) { var keywordQuery = new KeywordQuery(spSite) { QueryText = queryText, KeywordInclusion = KeywordInclusion.AllKeywords, HiddenConstraints = "scope:" + "\"People\"...


1

Yes. Should not be a problem. The user profile service application is also not available in SharePoint foundation and there you can also just give domain users permissions in SharePoint.


1

If I understand correctly, you have my sites in dev that have been copied from production. The profiles that have pictures have URLs that point to production. You have also copied the actual pictures from production to the User Photos library in the dev my site host. If this is correct, I can tell you what I did in this situation. Others have mentioned ...


1

Personally it has never been something I've done, only until recently because it was a billing cost as determined by our hosting partner. Weekly we have ControlPoint going through our farm purging the disabled users from the site. In all other previous places of employment, user cleanup wasn't a big priority because the AD accounts were disabled, and SCA ...


1

try this way, i am sure it will work. $user = Get-SPUser -web http://my.website.url -Identity "OLD_DOMAIN\OLD_USERNAME" Move-SPUser -IgnoreSID -Identity $user -NewAlias 'NEW_DOMAIN\NEW_USERNAME'



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