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-...
Dylan Cristy's user avatar
  • 12.7k
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 ...
Unnie's user avatar
  • 8,819
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 ...
Sergei Sergeev's user avatar
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 ...
Atish Kumar Dipongkor's user avatar
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 ...
Dikesh Gandhi's user avatar
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 ...
Venkat Konjeti's user avatar
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
Nagarajan Muthukumar's user avatar
6 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 ...
Waqas Sarwar MVP's user avatar
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>" $...
Cecilia's user avatar
  • 984
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 ...
Benny Skogberg's user avatar
  • 25.5k
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 ...
Paweł Hawrylak's user avatar
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 ...
MickB's user avatar
  • 1,491
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 ...
Gautam Sheth's user avatar
  • 30.9k
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. ...
Asad Refai's user avatar
  • 5,971
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 ...
Matthew McDermott's user avatar
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-...
Samir Khimani's user avatar
4 votes
Accepted

How to fetch user profile image from Azure Active Directory from SharePoint Online page?

In Graph API, you can use the below endpoint to fetch photo from Azure AD: https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/photo/$value So, for example, you have user's email address ...
Gautam Sheth's user avatar
  • 30.9k
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, ...
Thomas Gass's user avatar
  • 1,318
4 votes

Mentioning someone will not send any email notifications

Is the outgoing email server correctly configured in the farm and My Site host web application? Have you tested other notifications like site sharing invitations? If those don't work you may need to ...
Matthew McDermott's user avatar
4 votes

Get full user details from person field in javascript

You can't get all user metadata(profile) data from people column. It has to be retrieved from User profile properties. (function($){ $(document).ready(function(){ // Ensure that the SP....
little_big_thoughts's user avatar
4 votes
Accepted

SharePoint Online - User Exist in UserProfile but not in _api/web/siteusers

Users are added to User Profiles when then are imported from Active Directory, so you will generally find all users there. Users are added to a Site Collection's site users collection when: They ...
Mike Smith - MCT's user avatar
3 votes

Sharepoint Online: Retrieving PersonalURL for a user through the REST API?

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. ...
must19's user avatar
  • 748
3 votes

Check if user profile exist programmatically

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) ...
Tiago Duarte's user avatar
  • 5,477
3 votes

SharePoint Active Directory Import vs SharePoint Profile Synchronization

Its depend on upon your requirement, but you can configure the only OU which u want to import with either ADI or UPA Sync. I would Prefer the ADI...here are a couple of Advantages. Active Directory ...
Waqas Sarwar MVP's user avatar
3 votes

Get all users in js

I guess you have used the following to retrieve the User Profiles: https://<your site URL>/_api/web/siteusers In order to achieve this, you can simply use SharePoint Search Rest API. All you ...
Anand's user avatar
  • 1,745
3 votes

Get the User Profile data with API SharePoint 2013

You can use the search API and REST or CSOM to achieve this: https://<your tenant url>/_api/search/query?querytext='FirstName=A* OR Department=Test OR LastName:A'&selectproperties='LastName,...
Matthew McDermott's user avatar
3 votes
Accepted

Getting error while accessing User Profiles Anonymously

RunWithElevatedPrivileges elevates the code block to the Web Application App Pool Account. You need to ensure that account has access to the User Profile Service. I should point out RWEP is generally ...
Matthew McDermott's user avatar

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