learn.microsoft.com
Open in
urlscan Pro
2a02:26f0:ab00:3b8::3544
Public Scan
Submitted URL: http://microsoft.com/webservices/SharePointPortalServer/UserProfileService
Effective URL: https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ms518393(v=office.14)
Submission: On July 30 via api from US — Scanned from NL
Effective URL: https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ms518393(v=office.14)
Submission: On July 30 via api from US — Scanned from NL
Form analysis
3 forms found in the DOMName: site-header-search-form-mobile — GET /en-us/search/
<form class="flex-grow-1" method="GET" role="search" id="ms--site-header-search-form-mobile" data-bi-name="site-header-search-form-mobile" name="site-header-search-form-mobile" aria-label="Search" action="/en-us/search/">
<div class="autocomplete display-block" data-bi-name="autocomplete"><!---->
<div class="field-body control ">
<input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="site-header-search-autocomplete-input-mobile"
data-test-id="site-header-search-autocomplete-input-mobile" class="autocomplete-input input
width-full" type="search" name="terms" aria-expanded="false" aria-owns="ax-1-listbox" aria-controls="ax-1-listbox" aria-activedescendant="" aria-label="Search" aria-describedby="ms--site-header-search-autocomplete-input-mobile-description"
placeholder="Search previous versions" data-bi-name="site-header-search-autocomplete-input-mobile" pattern=".*">
<span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
<span hidden="" id="ms--site-header-search-autocomplete-input-mobile-description"> Suggestions will filter as you type </span>
</div>
<ul role="listbox" id="ax-1-listbox" data-test-id="site-header-search-autocomplete-input-mobile-listbox" class="autocomplete-suggestions is-vertically-scrollable padding-xxs " aria-label="Suggestions" hidden="">
</ul>
<!---->
</div>
<!-- mobile safari will not dispatch submit event unless there's a submit button that is not display:none -->
<button type="submit" class="visually-hidden" tabindex="-1" aria-hidden="true"></button>
<input name="category" hidden="" value="">
<input name="dataSource" hidden="" value="previousVersions">
</form>
Name: site-header-search-form — GET /en-us/search/
<form class="flex-grow-1" method="GET" role="search" id="ms--site-header-search-form" data-bi-name="site-header-search-form" name="site-header-search-form" aria-label="Search" action="/en-us/search/">
<div class="autocomplete display-block" data-bi-name="autocomplete"><!---->
<div class="field-body control ">
<input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="site-header-search-autocomplete-input" data-test-id="site-header-search-autocomplete-input" class="autocomplete-input input input-sm
width-full" type="search" name="terms" aria-expanded="false" aria-owns="ax-0-listbox" aria-controls="ax-0-listbox" aria-activedescendant="" aria-label="Search" aria-describedby="ms--site-header-search-autocomplete-input-description"
placeholder="Search previous versions" data-bi-name="site-header-search-autocomplete-input" pattern=".*">
<span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
<span hidden="" id="ms--site-header-search-autocomplete-input-description"> Suggestions will filter as you type </span>
</div>
<ul role="listbox" id="ax-0-listbox" data-test-id="site-header-search-autocomplete-input-listbox" class="autocomplete-suggestions is-vertically-scrollable padding-xxs " aria-label="Suggestions" hidden="">
</ul>
<!---->
</div>
<!-- mobile safari will not dispatch submit event unless there's a submit button that is not display:none -->
<button type="submit" class="visually-hidden" tabindex="-1" aria-hidden="true"></button>
<input name="category" hidden="" value="">
<input name="dataSource" hidden="" value="previousVersions">
</form>
javascript:
<form action="javascript:" role="search" aria-label="Search" class="margin-bottom-xxs"><label class="visually-hidden" for="ax-2">Search</label>
<div class="autocomplete display-block" data-bi-name="autocomplete"><!---->
<div class="field-body control has-icons-left">
<input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="ax-2" data-test-id="ax-2" class="autocomplete-input input input-sm
control has-icons-left
width-full" type="text" aria-expanded="false" aria-owns="ax-3-listbox" aria-controls="ax-3-listbox" aria-activedescendant="" aria-describedby="ms--ax-2-description" placeholder="Filter by title" pattern=".*">
<span aria-hidden="true" class="icon is-small is-left">
<span class="has-text-primary docon docon-filter-settings"></span>
</span>
<span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
<span hidden="" id="ms--ax-2-description"> Suggestions will filter as you type </span>
</div>
<ul role="listbox" id="ax-3-listbox" data-test-id="ax-2-listbox" class="autocomplete-suggestions is-vertically-scrollable padding-xxs " aria-label="Suggestions" hidden="">
</ul>
<!---->
</div>
</form>
Text Content
Skip to main content We use optional cookies to improve your experience on our websites, such as through social media connections, and to display personalized advertising based on your online activity. If you reject optional cookies, only cookies necessary to provide you the services will be used. You may change your selection by clicking “Manage Cookies” at the bottom of the page. Privacy Statement Third-Party Cookies Accept Reject Manage cookies This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Download Microsoft Edge More info about Internet Explorer and Microsoft Edge Learn Suggestions will filter as you type Sign in * Profile * Settings Sign out Learn * Discover * Documentation In-depth articles on Microsoft developer tools and technologies * Training Personalized learning paths and courses * Credentials Globally recognized, industry-endorsed credentials * Q&A Technical questions and answers moderated by Microsoft * Code Samples Code sample library for Microsoft developer tools and technologies * Assessments Interactive, curated guidance and recommendations * Shows Thousands of hours of original programming from Microsoft experts Microsoft Learn for Organizations Boost your team's technical skills Access curated resources to upskill your team and close skills gaps. * Product documentation * ASP.NET * Azure * Dynamics 365 * Microsoft 365 * Microsoft Edge * Microsoft Entra * Microsoft Graph * Microsoft Intune * Microsoft Purview * Microsoft Teams * .NET * Power Apps * Power Automate * Power BI * Power Platform * PowerShell * SQL * Sysinternals * Visual Studio * Windows * Windows Server View all products Microsoft Learn for Organizations Boost your team's technical skills Access curated resources to upskill your team and close skills gaps. * Development languages * C++ * C# * DAX * Java * OData * OpenAPI * Power Query M * VBA Microsoft Learn for Organizations Boost your team's technical skills Access curated resources to upskill your team and close skills gaps. * Topics * Artificial intelligence * Compliance * DevOps * Platform engineering * Security Microsoft Learn for Organizations Boost your team's technical skills Access curated resources to upskill your team and close skills gaps. Suggestions will filter as you type Sign in * Profile * Settings Sign out Table of contents Exit focus mode Dismiss alert We're no longer updating this content regularly. Check the Microsoft Product Lifecycle for information about how this product, service, technology, or API is supported. Return to main site Search Suggestions will filter as you type * SharePoint 2010 * SDK Documentation * SDK Documentation * New Developer Content for SharePoint Foundation 2010 * New Developer Content for SharePoint Server 2010 * New APIs in SharePoint 2010 Service Pack 1 (SP1) * Installing and Using the SharePoint 2010 SDK Download * SharePoint Foundation 2010 General Reference * SharePoint Server 2010 General Reference * SharePoint Online General Reference * SharePoint 2010 Class Libraries and Web Service References * SharePoint 2010 Class Libraries and Web Service References * SharePoint Foundation 2010 Class Libraries * SharePoint Server 2010 Class Libraries and Web Service References * SharePoint 2010 Web Services * SharePoint 2010 Web Services * SharePoint Foundation 2010 Web Services * SharePoint Server 2010 Web Services * SharePoint Server 2010 Web Services * Search Web Service * PublishedLinksService Web Service * SocialDataService Web Service * UserProfileChangeService Web Service * UserProfileService Web Service * UserProfileService Web Service * ChoiceTypes Enumeration * ContactData Class * GetUserProfileByIndexResult Class * InCommonData Class * MemberGroupData Class * MembershipData Class * MembershipSource Enumeration * OrganizationProfileData Class * PinnedLinkData Class * Privacy Enumeration * PropertyData Class * PropertyInfo Class * QuickLinkData Class * SPTimeZone Class * SuggestionType Enumeration * UserProfileService Class * UserProfileService Class * UserProfileService Members * UserProfileService Constructor * UserProfileService Methods * UserProfileService Properties * UserProfileService Events * ValueData Class * Glossary for SharePoint 2010 * Developer References * Technical Articles * Book Excerpts * Visual How Tos * Quick Notes * SharePoint Workspace 2010 1. Learn 2. Previous Versions 3. Office 4. SharePoint 2010 5. SDK Documentation 6. SharePoint 2010 Class Libraries and Web Service References 7. SharePoint 2010 Web Services 8. SharePoint Server 2010 Web Services 9. UserProfileService Web Service 1. Learn 2. Previous Versions 3. Office 4. SharePoint 2010 5. SDK Documentation 6. SharePoint 2010 Class Libraries and Web Service References 7. SharePoint 2010 Web Services 8. SharePoint Server 2010 Web Services 9. UserProfileService Web Service C# * C# * * VB * Read in English Save * Add to Collections * Add to Plan * Add to Challenges Table of contents Read in English Add to Collections Add to Plan -------------------------------------------------------------------------------- SHARE VIA Facebook x.com LinkedIn Email -------------------------------------------------------------------------------- Print Table of contents USERPROFILESERVICE CLASS * Article * 01/20/2015 IN THIS ARTICLE 1. Inheritance Hierarchy 2. Syntax 3. Examples 4. Thread Safety 5. See Also Provides a Web service to manage user profiles. INHERITANCE HIERARCHY System.Object System.MarshalByRefObject System.ComponentModel.Component System.Web.Services.Protocols.WebClientProtocol System.Web.Services.Protocols.HttpWebClientProtocol System.Web.Services.Protocols.SoapHttpClientProtocol [UserProfileService Web service].UserProfileService Namespace: [UserProfileService Web service] Web service reference: http://Site/_vti_bin/UserProfileService.asmx SYNTAX 'Declaration <WebServiceBindingAttribute(Name := "UserProfileServiceSoap", Namespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService")> _ Public Class UserProfileService _ Inherits SoapHttpClientProtocol 'Usage Dim instance As UserProfileService C# Copy [WebServiceBindingAttribute(Name = "UserProfileServiceSoap", Namespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService")] public class UserProfileService : SoapHttpClientProtocol EXAMPLES The following example shows how to get information about the membership of a user, colleagues of a user, links, and user profile property data. Make sure you add a Web reference to a UserProfileService Web service site to which you have access. Change the using GetProfileDataSample.MyServer002; directive to point to the Web service site you are referencing. In addition, replace "domain\\username" with valid values. C# Copy using System; using System.Collections.Generic; using System.Text; // TODO // Change the using GetProfileDataSample.MyServer002 directive // to point to the Web service you are referencing. using GetProfileDataSample.MyServer002; namespace GetProfileDataSample { class Program { //Instantiate the Web service. public static UserProfileService userProfileService = new UserProfileService(); static void Main(string[] args) { //Set credentials for requests. //Use the current user log-on credentials. userProfileService.Credentials = System.Net.CredentialCache.DefaultCredentials; GetUserProfilePropertyData(); GetUserMemberships(); GetUserColleagues(); GetUserLinks(); } static void GetUserProfilePropertyData() { // TODO // Replace "domain\\username" with valid values. PropertyData[] properties = userProfileService.GetUserProfileByName("domain\\username"); for (int i = 0; i < properties.Length; i++) { Console.WriteLine(properties[i].Name); Console.WriteLine(properties[i].Values); } Console.Read(); } static void GetUserMemberships() { // TODO // Replace "domain\\username" with valid values. MembershipData[] memberships = userProfileService.GetUserMemberships("domain\\username"); for (int i = 0; i < memberships.Length; i++) { Console.WriteLine(memberships[i].DisplayName); } Console.Read(); } static void GetUserColleagues() { // TODO // Replace "domain\\username" with valid values. ContactData[] contacts = userProfileService.GetUserColleagues("domain\\username"); for (int i = 0; i < contacts.Length; i++) { Console.WriteLine(contacts[i].Name); } Console.Read(); } static void GetUserLinks() { // TODO // Replace "domain\\username" with valid values. QuickLinkData[] links = userProfileService.GetUserLinks("domain\\username "); for (int i = 0; i < links.Length; i++) { Console.WriteLine(links[i].Url); } Console.Read(); } } } THREAD SAFETY Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe. SEE ALSO REFERENCE UserProfileService Members UserProfileService Web Service -------------------------------------------------------------------------------- ADDITIONAL RESOURCES English (United States) California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices Theme * Light * Dark * High contrast * Manage cookies * Previous Versions * Blog * Contribute * Privacy * Terms of Use * Trademarks * © Microsoft 2024 ADDITIONAL RESOURCES IN THIS ARTICLE English (United States) California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices Theme * Light * Dark * High contrast * Manage cookies * Previous Versions * Blog * Contribute * Privacy * Terms of Use * Trademarks * © Microsoft 2024