10 votes
Accepted

Get current user id in JSOM on sharepoint online

Can you not use _spPageContextInfo? It has the current user ID built in: _spPageContextInfo.userId https://social.technet.microsoft.com/wiki/contents/articles/29766.sharepoint-understanding-the-...
  • 12.3k
10 votes
Accepted

Unable to replicate the attributes of AD to SPO via AzureAD

By default user profile synchronization in SharePoint Online synchronises only few standard set of properties. Custom AAD Properties are not synced to SharePoint online User profiles by default/OOTB ...
  • 8,779
9 votes
Accepted

Search SharePoint user profile by property using rest?

Yes, it is possible, but you need to use slightly different approach. You can use search in order to filter users by profile property. Normally core profile properties are mapped to corresponding ...
8 votes
Accepted

Turning off "We found some suggestions for you on Sharepoint" globally

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 ...
  • 2,135
8 votes
Accepted

Get UserData - JavaScript

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

How to get all properties of all users in SharePoint 2013 Rest API?

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 + "/...
8 votes
Accepted

Account is removed in AD but User Profile still exist

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 ...
  • 4,466
7 votes
Accepted

Where are My Links stored?

The MyLinks control is hidden in SharePoint 2010, but as you point out still present in both 2010 and 2013. The links are part of the User Profile. So they are in the User Profile Database. You can ...
7 votes

UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have

Performing these steps should resolve your issue: Login to a farm server (that hosts SharePoint Server) as the farm setup user administrator account. Launch Central Administration as administrator. ...
7 votes
Accepted

Get the User Profile data with API SharePoint 2013

I use UserInformationList for User Profile properties. Your requirement can be achieved using $filter operator. /_vti_bin/ListData.svc/UserInformationList?$filter=startswith(FirstName,'A') or ...
7 votes
Accepted

Unable to get users from user profile for SHAREPOINT\system

System account is basically the Web application pool account user which you have passed during web application creation phase. You cannot find this user with account name "SharePoint\System" in User ...
7 votes
Accepted

Users are in Office 365 but do not yet have a user profile SharePoint Online

Office 365 for Education does not automatically sync user profiles with SharePoint Online. To see and edit a user profile in SharePoint Online, the user must first visit a SharePoint site. After a ...
6 votes
Accepted

Change / rearrange / move user properties - Powershell

Looks like I found the answer.. $MySite = Get-SPSite "$site" $context = Get-SPServiceContext $MySite $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context) $...
  • 2,250
6 votes
Accepted

Rest API to get SharePoint site collection all users

The REST Endpoint URI to get all the users of a Site Collection is <site url>/_api/Web/SiteUsers
6 votes

Update Multiple User Profiles - Not One at a Time

You can execute the following PowerShell script. It instantiates the User Profile Manager and loops through each "Profile", copying Unit property value in Units property. $url = "<mySiteUrl>" $...
  • 974
6 votes
Accepted

Active Directory Import in Sharepoint Foundation 2013

In SharePoint 2016 there are no Foundation only version to be installed, but on 2013 SharePoint Foundation is still available. You can use Active Directory import with either Foundation, Standard or ...
  • 25.4k
6 votes
Accepted

"User Profile Synchronization Service" missing in SP2016

User Profile Service Application was changed significantly in SharePoint Server 2016. Forefront Identity Manager is no longer used for synchronization and there is no User Profile Synchronization ...
6 votes

where does the people picker control get its data from?

The People Picker has three sources: Active Directory (or the configured identity provider) The User Information List. The UIL is stored in the SharePoint Content Database UserInfo table. These are ...
  • 28.9k
5 votes

How to get all properties of all users in SharePoint 2013 Rest API?

That can be specified by the URL that you use: Get all properties of current user: http://siteurl/_api/SP.UserProfiles.PeopleManager/GetMyProperties Get all properties of Specific User: For Office ...
5 votes

How To Get User Id Using Login Name in Share Point Provider Hosted App

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/...
  • 237
5 votes

Where the User Profile Pictures are stored in database

If you are importing the User's picture from the AD, a full sync will fix it. Basically User Profile Pictures stored in the User Photos/Profile Pictures folder on the root of mysite host url. Url ...
  • 56.8k
5 votes
Accepted

Update People field using REST and javascript

In any event a user who visits my site might send to a recipient who has never been to my site and therefore doesn't have a local user id. It looks like you are able to post people to the list so ...
  • 1,481
5 votes
Accepted

Can we dynamically link the "People" modern web part inside with a sharepoint group

No its not possible either way. This is a first party webpart, built by Microsoft. You can only change its layout from compact to descriptive and vice versa. For your requirement, you need to ...
  • 30.5k
4 votes

Current MySite url by javascript

This is just an expansion of @aveenavs answer, which works great for me, unless the user is on the root site of the application. The only difference is using _spPageContextInfo.webAbsoluteUrl instead ...
  • 1,080
4 votes

Account is removed in AD but User Profile still exist

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 ...
  • 2,176
4 votes
Accepted

How to delete orphaned profile in SharePoint Online?

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. ...
  • 5,953
4 votes
Accepted

User Profile pictures changing after updating another profile

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 ...
  • 28.9k
4 votes
Accepted

Issue with User Profile in User Profile Application

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 ...
4 votes
Accepted

Getting user profile property with dash in name with rest api

For this you will need to use "GetUserProfilePropertyFor" function.Please try below URL. http://server/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='SPS-...
4 votes

User's name and email address is incorrect for the user, but correct in User Profile Services and everywhere else

The info is probably incorrect because of the hidden user list in each site collection (/_catalogs/users/simple.aspx after the root site URL). This sometimes doesn't update even tho UPS does. To fix, ...
  • 1,298

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