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-...
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 ...
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 ...
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)
$...
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
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 ...
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>"
$...
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 ...
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 ...
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/...
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 ...
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 ...
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. ...
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
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 ...
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, ...
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 ...
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....
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 ...
3
votes
Accepted
How to use JSOM/CSOM in SharePoint 2010 to get information about the current user like department, title, manager and phone number
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....
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. ...
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) ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
user-profile × 1034user-profile-service × 202
2013 × 137
user-profile-property × 123
sharepoint-enterprise × 115
sharepoint-online × 101
active-directory × 88
my-site × 78
2010 × 76
sharepoint-server × 62
profile-sync × 61
powershell × 52
user × 43
development × 34
user-accounts × 34
2007 × 32
javascript × 30
office-365 × 30
rest × 27
search × 26
sharepoint-foundation × 22
administration × 22
web-part × 21
permissions × 19
mysite × 19