12

You can iterate through all user profiles and update them. The PowerShell script can look like this: [void][reflection.assembly]::Loadwithpartialname("Microsoft.Office.Server"); Add-PSSnapin Microsoft.SharePoint.PowerShell $site=Get-SPSite "https://yourSitecCollection" $serviceContext = Get-SPServiceContext $site; $upm = new-object Microsoft....


9

Rest API URI: http://<site url>/_api/web/getuserbyid(ID#) Dev Center article: http://msdn.microsoft.com/en-us/library/office/dn531432(v=office.15).aspx#bk_User


7

In SharePoint Online you are currently allowed to have as many as 3600 characters in a User Profile Property string (Single Value). I tried to add 10’000, and got a helpful error message: On SharePoint Server 2010 the max value is 1999, and on SharePoint Server 2013 the max value is the same as in SharePoint Online; 3600.


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) $profileManager.Properties....


6

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>" $site = Get-SPSite $url $context = Get-SPServiceContext $site $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context) $...


6

When switching from one AD-environment to another, you sometimes end up with users who don't get imported correct. You see them when they don't have first name and last name when they are logged in to SharePoint. They have \ visible instead. But let's start from the beginning and migrate the users with the following command: STSADM –o migrateuser –oldlogin ...


5

You cannot change any properties in the User Profiles via client OM code (neither .NET nor via JavaScript) with the exception of the user's profile picture. MSDN - Work with user profiles in SharePoint 2013 Not all functionality that you find in the Microsoft.Office.Server.UserProfiles assembly is available from client APIs. For example, you have to ...


5

This is because you are referring 2013 Client SDK dll's.. Look the path points to 15 hive You should install SPO Client SDK and change to 16 hive in Add-Type https://www.microsoft.com/en-us/download/details.aspx?id=42038


4

Your code can't work, too many errors to list. The following code would delete the user profile property "Company": Add-Type -Path "c:\program files\common files\microsoft shared\web server extensions\15\isapi\microsoft.office.server.dll" $site = Get-SPSite -Limit 1 #get site for context $ctx = Get-SPServiceContext($site) #get context $cfgManager= new-...


4

That code will only run with credentials provided for a tenant administrator. It will not work against App-only policy. There is a User Profiles scope in the app permissions manifest, but, like the Taxonomy permission scope, it does not seem to actually do anything (in an Office 365 context, anyway). http://www.vrdmn.com/2014/11/set-another-users-profile-...


4

For few items in ID's array, then you can try following /_api/Web/Lists/GetByTitle('User Information List')/Items?$filter=(Id eq 426) or (Id eq 352) or (Id eq 155) It will give you all users in one request. Remember GET request has MAX URL length. For many items in ID's array, you have to use CAML & POST. CAML Should look like <Where> <...


4

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 displayed in the UPSA).


3

I realize that this topic is a year old, but I was having a very similar issue. I had a site that had been migrated from MOSS to SharePoint 2010 and then again to SharePoint 2013. I could add users to the Members SharePoint group through the UI, however none of the users would show. I was able to verify that the users were being added to the group via the ...


3

In Foundation the User Information is stored in a hidden list at the root of the Site Collection called the User Information List. The list is populated when a user first accesses a site collection. (In SharePoint Server the list still exists and is synchronized with the User Profile by two timer jobs.) Updates to the list occur when the user is "Active" on ...


3

Which fields can be edited by a user is configured at the User Profile Service Application Profile Service Application > Manage User Properties > Select the Property you want to block > Select the Option


3

Try Removing her from the hidden user list https://<siteUrl>/_catalogs/users/simple.aspx Then when she logs in again, it should re-add her to this list. You can then confirm the name has been updated


3

That is how crawl works. If you have PhoneNumber in these format: 1234567890 1234 567890 123 4567 890 123 456 7890 When crawling, every sign or space " ", "-", "_", "(", ")" is like delimiter and it is putted in new place inside array. For example: for 1. it will be array[0] with (1234567890), for 2. will be array[0 and 1] with (1234 and 567890) because ...


3

you can use: <script> var userId = _spPageContextInfo.userId; </script> _spPageContextInfo is your new best friend


3

I would suggest to do not reinvent the wheel resolve personal site url from user login name directly instead of constructing the url to display form of User Information list (/_layouts/15/userdisp?ID=<user id>). The following example demonstrates how to retrieve user personal site url: function navigateToPersonalSite() { SP.SOD.registerSod('SP....


3

There is no way you'll ever get access to the users password. (In fact SharePoint don't know it, as Authentication is handles by other components. In fact even these hopefully don't know it, but only have some hash of it). To access anything in the host web you can use the cross-domain library. Login will be handlede automatically. See How to: Access ...


3

Create EndPoint workflow variable with value [%Workflow_Context:Current Site URL%]]/_api/Web/SiteUserInfoList/items?$filter=(ID eq [%Workflow_Context:AssignedTo%]) Add Build dictionary action to get the the response in a JSON format you will have to update the Accept and Content-Type http headers of your Rest http call; more specifically: Accept : ...


3

To Add OOTB Taxonomy Picker Edit the masterpage and add: <SharePoint:ScriptLink ID="ScriptLink2" name="scriptforwebtaggingui.js" OnDemand="true" runat="server" Localizable="false" /> <SharePoint:ScriptLink ID="ScriptLink1" name="sp.taxonomy.js" OnDemand="true" runat="server" Localizable="false" /> In your HTML/page/script editor add ...


3

Unfortunately configuration of user profile properties in SharePoint cannot be performed using JSOM or CSOM. There's no remote APIs exposed for these capabilities, so they can only be modified using server side object model. This also means that only option to control those settings in SharePoint Online is by manually controlling them from the admin UIs. ...


3

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 have make sure is that you need to use the below Source ID B09A7990-05EA-4AF9-81EF-EDFAB16C4E31 Following is an example of using the SharePoint Search REST ...


3

You can use following rest api URL to get required properties Get all properties of Specific User: For Office 365/SharePoint Online: http://siteurl/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='i:0%23.f|membership|loginname@siteurl.onmicrosoft.com' For SharePoint 2013 On-Premise: http://siteurl/_api/SP.UserProfiles.PeopleManager/...


3

As per comments by InnovaITve Solutions and Hardik, I got solution. Here is source What I did is, I used following URL to make my REST Call SiteUrl/_vti_bin/ListData.svc/UserInformationList?$filter = ((FirstName eq 'MyFirstName') and (LastName eq 'MyLastName')) It returned me all the information I need.


3

The AD Import process will synchronize regardless if the properties are populated or not. This means that yes, your populated values will be overwritten by blank values.


3

You would need to populate the TermSet (or have users populate their own profile) and edit your user's profile with this information. You cannot change the mapping. The Office value is populated from the Azure AD attribute PhysicalDeliveryOfficeName which you may consider populating. This also has an identically named attribute in Active Directory should you ...


3

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 have been granted explicit permissions to the a site in the Site Collection. They are a Site Collection Administrator or a Site Owner. They are members of an AD ...


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