New answers tagged

1

To understand why there is changes in user id you should know something detailed about User Information List, User Information List: As per the Name SharePoint User Information List stores information about a user by having some metadata set up for the user. Some examples are User Picture, Email, DisplayName, LoginName etc. This User Information list will ...


-1

Command: Set-SPUser –Identity "domain\username" –SyncFromAD –Web https://mysitecollection


1

For getting specific property you can use _api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='PropertyToGet')?@v='i:0%23.f|membership|abc@xyz'


1

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 Import: One way of import, you can't export values to AD It's Fast then FIM's two-way sync Easy to configure. You can schedule incremental every 5 min. You can ...


0

Using below code you will be able to find User Name, Login ID, User ID, Email ID of the current logged in user $(document).ready(function () { SP.SOD.executeFunc('sp.js', 'SP.ClientContext', LoadCurrentUser); }); function LoadCurrentUser() { var context = SP.ClientContext.get_current(); var siteColl = context.get_site(); var web = siteColl....


0

You can put below code to script editor webpart to show current logged in user's details. <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(init,'sp.js'); var currentUser; function init(){ this.clientContext = new SP.ClientContext.get_current(); this.oWeb = clientContext.get_web(); currentUser = this.oWeb.get_currentUser(); ...


0

Use Rest to get current logged in user details as below $(document).ready(function () { var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/sp.userprofiles.peoplemanager/getmyproperties"; $.ajax({ url : requestUri, contentType : "application/json;odata=verbose", headers : { "accept" : "application/json;odata=verbose" }, ...


0

You could use InfoPath forms where you can use SharePoint web services to retrieve info from the loggedin user. Check this link for the SharePoint Web Services Publish InfoPath form to SharePoint and then add to your page the custom infopath form control (custom web part) you have just published.


0

in SharePoint 2013 use "Active Directory Import" instead of "SharePoint Profile Synchronization" in Configure synchronization Settings Extremely fast performance Very reliable No FIM and extra sync service is required http://sharepoint.stackexchange.com/a/183097/16880


0

Here is what I did. I had the AD folks populate the EmployeeID field in AD with the Employee's ID from our SAP. I then added a filter to synchronize only active employees. UserProfile Synchronization Connection Filters User is Not Disabled User has an E-Mail Address User has an Employee ID (&(objectClass=User)(!userAccountControl:1.2.840.113556.1....



Top 50 recent answers are included