Hot answers tagged

7

Getting only the current user won't be enough to get user profile properties. You need to use the PeopleManager as well. Your code should look something like this: var context = SP.ClientContext.get_current() var web = context.get_web(); var user = web.get_currentUser(); var peopleManager = new SP.UserProfiles.PeopleManager(context); var personProperties = ...


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


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


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


3

There's only one account in AD but they end up being treated like two different user profiles within SharePoint. You're on the right track when you mention the claims prefix. Most likely, this site at one point used Classic authentication and was later changed to Claims authentication (or vice versa but moving a site 'backwards' from Claims to Classic ...


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

Since I have to load the userprofile script, I had to use: SP.SOD.executeFunc('userprofile', 'SP.UserProfiles.PeopleManager', function() { var clientContext = new SP.ClientContext.get_current(); var personProperties = new SP.UserProfiles.PeopleManager(clientContext).getMyProperties(); clientContext.load(personProperties); ...


3

You can disable the timer job responsible for sending mail for MySite Suggestions Email job. From Central Administration, click Monitoring Under the Timer Jobs heading, click Review job definitions Scroll down (or click through pages) until you find a job called User Profile Service - User Profile My Site Suggestions Email Job


3

I have a Powershell function in my profile (it also handles loading all the CSOM modules too) that looks like this: #This will handle iterating through all the OD4B sites that have been provisioned #and setting an eDiscovery SCA and any other SCAs as necessary $sca = "user@domain.com" $Password = Read-Host -Prompt "Please enter your password" ...


3

The ObjectGUID is a binary string ( or octet string ), so what you are probably seeing is some random nonsense characters when you attempt display the value. The ObjectGUID actually follows a well-established standard - it's a UUID version 4. With this information, you should be able to decode the binary string into a readable string representation. Take ...


2

I would recommend using a query against the change log. The "Event Receiver" really isn't it's just a timer job using the same approach detailed in the article. You could even run it all external to SharePoint from PowerShell if you wanted. No need to deploy custom code to SharePoint.


2

sorry, too less reputation to add a comment... Answer for: Nice suggestion but the Show Field doesn't contain all properties from the user profile service. I can't see any settings within the user profile property settings page to get extra options to appear. if you want to show custom properties in "Show Field" section of an SPUser field, you ...


2

I was running into the same issues and it turned out I was referencing the wrong DLLs. I was also having issues with CreatePersonalSiteEnqueueBulk not being recognized. I was referencing the 15 version not the 16 version and also the 16 version I had was out of date. Be sure you are referencing the proper DLL and have the most up to date version. I'm now ...


2

The supported method is to migrate the User Profile Service Databases together - you can't do them separately. All your noteboard entries are stored in the UserProfile Social Database. You could try: Use API to query the user profile service and export the required values and then re-import them into destination farm. Attempt to use only the social ...


2

When you delete a user account, the account becomes inactive. However, for approximately 30 days after you have deleted it, you can restore the account and the associated data. If your organization synchronizes user accounts to Office 365 from a local Active Directory environment, you must delete and restore those user accounts in your local Active ...


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

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


2

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


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

If you want to get all users of site then _spPageContextInfo.webAbsoluteUrl + "/_api/Web/SiteUsers" If You want to display information of User in site then _spPageContextInfo.webAbsoluteUrl + "/_api/Web/SiteUserInfoList" Display particular user information then _spPageContextInfo.webAbsoluteUrl + "_api/web/GetUserById("+UserID+")" But in your case ...


2

You can expand the user field using following code CAMLQueryOptions: "<QueryOptions><ExpandUserField>True</ExpandUserField></QueryOptions>" Now you can extract username in success method by using string manipulation.


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

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


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:" + ...


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

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

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 your outlook is configured with the same user profile of the SharePoint online then it will be synced automatically. The same will be applicable for Lync also. So Yes if both your profile is configured with your SharePoint online account then it will be synced.



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