id
stringlengths
14
16
text
stringlengths
2
3.14k
source
stringlengths
45
175
07ed74c5eb1b-12
####################################################### # MAIN section # ####################################################### # Url of the site collection to remediate $siteCollectionUrlToRemediate = "https://contoso.sharepoint.com/sites/testsite" # If you use credential manag...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-permissivesetting
07ed74c5eb1b-13
Mode LastWriteTime Length Name ---- ------------- ------ ---- ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-permissivesetting
07ed74c5eb1b-14
Renaming https://contoso.sharepoint.com/sites/testsite/Shared Documents/team_home.html... Connected to https://contoso.sharepoint.com/sites/testsite... Renaming https://contoso.sharepoint.com/sites/testsite/Shared Documents/imagesource.html... Connected to https://contoso.sharepoint.com/sites/testsite... Renaming https...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-permissivesetting
7ef3b2b80deb-0
Web app policies are a concept that allows SharePoint administrators to either grant or deny permissions to users and groups for all sites under a web application. These permission grants and denies take preference over the permissions set at the sites in the web application and therefore are a mechanism typically used...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-webapppolicies
7ef3b2b80deb-1
App principals are granted with scope all sites, meaning if a site gets added the app principal automatically has access to it as well. In case of user/group access the respective user/group first needs to be added to the new site App principals “override” permission inheritance setting. Suppose a sub site has broken...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-webapppolicies
7ef3b2b80deb-2
Web App policy grant Equivalent SharePoint permission Full Control Add to site collection administrators Full Read Add using “Read” permission level (= site visitors) Add using “Full Control” permission level (= site owners) Add using “Edit” permission level (= site members) ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-webapppolicies
7ef3b2b80deb-3
New members must be added to all sites Tamper proof A group can shield the actual accounts having access (e.g. legal account) and other admins are less likely to remove the permissions for the group There’s full transparency, other admins might be more likely to remove the “weird” users from their site ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-webapppolicies
7ef3b2b80deb-4
Get-PnPTenantSite is not Multi-Geo aware Performance is not optimal since the scripts are sequentially running, there’s no parallel execution Since users continuously create new site collections it’s important to run these scripts on regular basis, ideally as a scheduled task. Note PnP PowerShell is an ope...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-webapppolicies
7ef3b2b80deb-5
# Specify the tenant here $tenant = "contoso" # Note: This example assumes that you are managing your credentials in Windows as documented here: # https://github.com/SharePoint/PnP-PowerShell/wiki/How-to-use-the-Windows-Credential-Manager-to-ease-authentication-with-PnP-PowerShell write-host "Connecting to https://$($...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-webapppolicies
7ef3b2b80deb-6
# Note: This example assumes that you are managing your credentials in Windows as documented here: # https://github.com/SharePoint/PnP-PowerShell/wiki/How-to-use-the-Windows-Credential-Manager-to-ease-authentication-with-PnP-PowerShell write-host "Connecting to https://$($tenant)-admin.sharepoint.com" Connect-PnPOnline...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-webapppolicies
7ef3b2b80deb-7
# Note: we are only fetching the root site collection and any site collection in the /sites/ path # Update filters here accordingly to match your requirements write-host "Getting list of site collections" $sitecollections = Get-PnPTenantSite | where {($_.Url -like "*$($tenant).sharepoint.com/") -or ($_.Url -like "*$($t...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-webapppolicies
7ef3b2b80deb-8
As part of this guidance we’ve created an application to get you started with this. The sample is called Governance.EnsurePolicy and can be in the SharePoint PnP repository. Note This scenario could be further expanded into an application that conditionally grants and removes permissions. For example, helpdesk ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-webapppolicies
7ef3b2b80deb-9
With Office 365 Security and Compliance Center you can use the Auditing features to track file activity. Learn more with the following articles: Auditing of all your SharePoint site collections using the Office 365 Security and Compliance center: Search the audit log in the Office 365 Security & Compliance Center ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-webapppolicies
7ef3b2b80deb-10
To block or limit access on non-compliant or unmanaged devices, functionality is coming soon which takes advantage of Azure Active Directory conditional access policies . Using this policy, you can block access to rich apps on unmanaged devices and allow browser only access without the ability to download, print or sy...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-webapppolicies
e4b00d8bb767-0
SharePoint App-Only is the older, but still very relevant, model of setting up app-principals. This model works for both SharePoint Online and SharePoint 2013/2016/2019 on-premises and is ideal to prepare your applications for migration from SharePoint on-premises to SharePoint Online. Below steps show how to setup an ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs
e4b00d8bb767-1
Next step is granting permissions to the newly created principal. Since we're granting tenant scoped permissions this granting can only be done via the appinv.aspx page on the tenant administration site. You can reach this site via https://contoso-admin.sharepoint.com/_layouts/15/appinv.aspx . Once the page is loaded ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs
e4b00d8bb767-2
Using this principal in your application using the PnP Framework library In a first step, you add the PnP Framework library nuget package: https://www.nuget.org/packages/PnP.Framework . Once that's done you can use below code construct: string siteUrl = "https://contoso.sharepoint.com/sites/demo"; using (var cc = ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs
e4b00d8bb767-3
namespace AzureACSAuth { class Program { static void Main(string[] args) { string siteUrl = "https://contoso.sharepoint.com/sites/demo"; //Get the realm for the URL string realm = TokenHelper.GetRealmFromTargetUrl(new Uri(siteUrl)); //Get the acc...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs
b515cb34fc2e-0
When using SharePoint Online you can define applications in Azure AD and these applications can be granted permissions to SharePoint, but also to all the other services in Office 365. This model is the preferred model in case you're using SharePoint Online, if you're using SharePoint on-premises you have to use the Sha...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
b515cb34fc2e-1
To create a self signed certificate with this script: .\Create-SelfSignedCertificate.ps1 -CommonName "MyCompanyName" -StartDate 2017-10-01 -EndDate 2019-10-01 Note The dates are provided in ISO date format: YYYY-MM-dd The certificate key algoritm must be RSA, this is the only supported algorithm currently ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
b515cb34fc2e-2
This will create a new self signed certificate with the common name "CN=MyCert". During creation you will be asked to provide a password to protect the private key. If there is already a certificate with the common name you specified, it will be removed first. #> Param(
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
b515cb34fc2e-3
[Parameter(Mandatory=$true)] [string]$CommonName, [Parameter(Mandatory=$true)] [DateTime]$StartDate, [Parameter(Mandatory=$true)] [DateTime]$EndDate, [Parameter(Mandatory=$false, HelpMessage="Will overwrite existing certificates")] [Switch]$Force, [Parameter(Mandatory=$false)] [SecureStri...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
b515cb34fc2e-4
$key = new-object -com "X509Enrollment.CX509PrivateKey.1" $key.ProviderName = "Microsoft RSA SChannel Cryptographic Provider" $key.KeySpec = 1 $key.Length = 2048 $key.SecurityDescriptor = "D:PAI(A;;0xd01f01ff;;;SY)(A;;0xd01f01ff;;;BA)(A;;0x80120089;;;NS)" $key.MachineContext = 1 $key.ExportPolic...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
b515cb34fc2e-5
$enrollment = new-object -com "X509Enrollment.CX509Enrollment.1" $enrollment.InitializeFromRequest($cert) $certdata = $enrollment.CreateRequest(0) $enrollment.InstallResponse(2, $certdata, 0, "") return $true } function ExportPFXFile() { if($CommonName.ToLower().StartsWith("cn=")) { # R...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
b515cb34fc2e-6
if(CreateSelfSignedCertificate) { ExportPFXFile RemoveCertsFromStore } You will be asked to give a password to encrypt your private key, and both the .PFX file and .CER file will be exported to the current folder. Note The self-signed certificate can also be generate through the New-PnPAzureCertificat...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
b515cb34fc2e-7
Now click on "API permissions" in the left menu bar, and click on the "Add a permission" button. A new blade will appear. Here you choose the permissions that you will grant to this application. Choose i.e.: SharePoint Application permissions Sites Sites.FullControl.All Click on the blue "A...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
b515cb34fc2e-8
If you see a section looking somewhat similar to this, the certificate has been added successfully. In this sample the Sites.FullControl.All application permission require admin consent in a tenant before it can be used. In order to do this, click on "API permissions" in the left menu again. At the bottom you will se...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
b515cb34fc2e-9
namespace AzureADCertAuth { class Program { static void Main(string[] args) { var authManager = new AuthenticationManager("<application id>", "c:\\temp\\mycert.pfx", "<password>", "contoso.onmicrosoft.com"); using (var cc = authManager.GetContext("https://contoso.sharepoi...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
b515cb34fc2e-10
# set the variables $siteUrl = "https://<tenant>.sharepoint.com" $appId = "<guid of the App>" $domain = "<tenant>.onmicrosoft.com" $azureEnv = [PnP.Framework.AzureEnvironment]::Production try { # instantiate the object $clientContext = $null $authManager = new-object PnP.Framework.AuthenticationManager($ap...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
b515cb34fc2e-11
using (var cc = new PnP.Framework.AuthenticationManager( "<application id>", GetKeyVaultCertificate("kv-spo", "AzureAutomationSPOAccess"), "contoso.onmicrosoft.com").GetContext("https://contoso.sharepoint.com/sites/demo")) { cc.Load(cc.Web, p => p.Title); cc.ExecuteQuery(); log.Info("Via PnP, we...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
8c647a7c01e1-0
Find out about throttling in SharePoint Online and learn how to avoid being throttled or blocked. What is throttling? How to handle throttling? Common throttling scenarios in SharePoint Online Scenario specific limits What should you do if you get blocked in SharePoint Online? Additional resources Doe...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
8c647a7c01e1-1
In both cases, a Retry-After header is included in the response indicating how long the calling application should wait before retrying or making a new request. Throttled requests count towards usage limits, so failure to honor Retry-After may result in more throttling. If the offending application continues to e...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
8c647a7c01e1-2
SharePoint provides various APIs. Different APIs have different costs depending on the complexity of the API. The cost of APIs is normalized by SharePoint and expressed by resource units. Application’s limits are also defined using resource units. The table below defines the resource unit limits for an application in...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
8c647a7c01e1-3
Note We reserve the right to change the API resource unit cost. Delta with a token is the most efficient way to scan content in SharePoint, and we talk more in details at the best practices for scanning applications . To help applications that follow the guidance, we lower the resource unit cost of delta request...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
8c647a7c01e1-4
Choose Microsoft Graph APIs over CSOM and REST APIs when possible Use the Retry-After and RateLimit HTTP headers Decorate your traffic so we know who you are (see section on traffic decoration best practice more on that below) As stated earlier, Microsoft Graph is cloud born APIs that have the latest im...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
8c647a7c01e1-5
RateLimit-Limit contains the limit in the current time window. RateLimit-Remaining indicates the remaining quota in the current window. RateLimit-Reset indicates the number of seconds until the quota is refilled. Note These headers are currently in beta and subject to change. At the time when the heade...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
8c647a7c01e1-6
HTTP/1.1 200 Ok RateLimit-Limit: 1200 RateLimit-Remaining: 120 RateLimit-Reset: 5 An application has consumed 100% of its resource unit quota, so it gets throttled due to this policy. The request is throttled and the RateLimit headers are returned. The Retry-After matches the RateLimit-Reset . HTTP/1.1 42...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
8c647a7c01e1-7
What are the recommendations? If you've created an application, the recommendation is to register and use AppID and AppTitle – This will ensure the best overall experience and best path for any future issue resolution. Include also the User Agent string information as defined in following step. Note Refer to ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
8c647a7c01e1-8
Common throttling scenarios in SharePoint Online The most common causes of per-user throttling in SharePoint Online are client-side object model (CSOM) or Representational State Transfer (REST) code that performs too many actions too frequently. Sporadic traffic Constant load or repetitive complex queries again...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
8c647a7c01e1-9
Creating multiple AppIDs for the same application Don't create separate AppIDs where the applications essentially perform the same operations, such as backup or data loss prevention. Applications running against the same tenant ultimately share the same resource of the tenant. Historically some applications have trie...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
8c647a7c01e1-10
Consider if the requests are necessary for your application. For example, if you're using a custom search site, which makes many simultaneous queries, check whether some of those requests can be removed without any significant impact to your organization's search experience. Alternatively, consider trying our modern pe...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
8c647a7c01e1-11
If we block your subscription, we'll notify you of the block in the Office 365 Message Center. The message describes what caused the block, provides guidance on how to resolve the offending issue, and tells you who to contact to get the block removed. See also Diagnosing performance issues with SharePoint Online ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online
398d4e6095b0-0
When your Office 365 tenant is hosted in an specific environment like the Germany, China or US Government environments then you'll need to take this in account when you're developing against your tenant. Applies to: Office 365 hosted in the Germany, China or US Government environments Important Azure Access Co...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/extending-sharepoint-online-for-germany-china-usgovernment-environments
398d4e6095b0-1
https://login.chinacloudapi.cn US Government https://login.microsoftonline.us Using PnP to authorize using Azure AD The PnP AuthenticationManager offers an easy way to obtain an SharePoint ClientContext object when you're using an Azure AD application. The impacted methods have been extended wit...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/extending-sharepoint-online-for-germany-china-usgovernment-environments
398d4e6095b0-2
Using Azure ACS to authorize your SharePoint add-in When you create SharePoint add-ins they'll typically low-trust authorization which depends on Azure ACS as descrived in Creating SharePoint Add-ins that use low-trust authorization . Azure ACS endpoints Environment Endpoint prefix Endpoint ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/extending-sharepoint-online-for-germany-china-usgovernment-environments
398d4e6095b0-3
private static string GlobalEndPointPrefix = "accounts"; private static string AcsHostUrl = "accesscontrol.windows.net"; ... Tokenhelper.cs updates for Germany Update the static variables GlobalEndPointPrefix and AcsHostUrl to the Germany Azure ACS values. ... private static string GlobalEndPointPrefix = "...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/extending-sharepoint-online-for-germany-china-usgovernment-environments
398d4e6095b0-4
... Using PnP to authorize your add-in using Azure ACS The PnP AuthenticationManager offers an easy way to obtain an SharePoint ClientContext object when you're using Azure ACS to authorize. The impacted methods have been extended with an optional AzureEnvironment enum /// <summary> /// Enum to identify ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/extending-sharepoint-online-for-germany-china-usgovernment-environments
cc84ccec34cd-0
The articles in this section show you how to improve the security and performance of your SharePoint sites. The following table lists the articles that are included. Article Shows you how to use the add-in model to Authorize provider-hosted add-in users at run time Provide authorized access to Sha...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-and-performance
e10d59987023-0
Note The following page relates to classic sites in SharePoint Online. These features are not supported in modern SharePoint sites. To implement similar functionality in modern SharePoint review PnP modern search web parts at: https://microsoft-search.github.io/pnp-modern-search/ Create customized SharePoint and...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-customizations-for-sharepoint
e10d59987023-1
Change the first <div> tag after the opening <body> tag from <div id="Item_Site"> to <div id="Item_SiteDirectory"> . Change the hover panel display template JavaScript file name from var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Site_HoverPanel.js"; to var hoverUrl = "~s...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-customizations-for-sharepoint
e10d59987023-2
Choose Create . To edit the Results web part properties On the Site Directory page, choose Settings > Edit Page . In the Search Results Web Part , choose the Web Part menu, and then choose Edit Web Part . In the Web Part tool pane, choose Change query to open the Query Builder. In the ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-customizations-for-sharepoint
e10d59987023-3
Your News personalized search scenario To implement the news scenario, use the SharePoint Search Results web part and default display templates to display the news information, including title, description, and rollup image. Show the first ten news items. When the user chooses the rollup image, title, or Read More ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-customizations-for-sharepoint
e10d59987023-4
You can also create a search add-in that uses the query API to retrieve event results. You can configure the search add-in to show, by default, only ten of the latest upcoming events, but make this setting configurable through the search add-in properties. Featured news scenario In this scenario, the search add-in ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-customizations-for-sharepoint
e10d59987023-5
KeywordQuery keywordQuery = new KeywordQuery(ctx); keywordQuery.QueryText = keywordQueryValue; keywordQuery.RowLimit = 500; keywordQuery.StartRow = 0; keywordQuery.SelectProperties.Add("Title"); keywordQuery.SelectProperties.Add("SPSiteUrl"); keywordQuery.SelectProperties.Add("Description"); keywordQuery.SelectProperti...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-customizations-for-sharepoint
e10d59987023-6
responseHtml += string.Format("<td>{0}</td>", row["WebTemplate"] != null ? row["WebTemplate"].ToString() : ""); responseHtml += "</tr>"; } } responseHtml += "</table>"; The ResolveAdditionalFilter method checks for "Apptest". If it is found, a list of site templates of any type is returned in the search resu...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-customizations-for-sharepoint
e10d59987023-7
Configuration settings that are portable When you export customized search configuration settings, SharePoint creates a search configuration file in XML format. This search configuration file includes all exportable customized search configuration settings at the SSA level, site collection level, or site level from w...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-customizations-for-sharepoint
e10d59987023-8
These settings are also available in the Site Collection Administration section. Alternatively, you can programmatically import and export these settings by using the SharePoint search CSOM. Search configuration files The following table lists schema files that support a search configuration. For information abou...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-customizations-for-sharepoint
e10d59987023-9
The following code example shows how to export a site's search configuration settings. private static void ExportSearchSettings(ClientContext context, string settingsFile) { SearchConfigurationPortability sconfig = new SearchConfigurationPortability(context); SearchObjectOwner owner = new SearchObjectOwner(contex...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-customizations-for-sharepoint
887e6c5227b8-0
Search in SharePoint combines ease of configuration and deployment with the scalability and extensibility of the FAST Search Server on a single enterprise search platform. SharePoint includes common patterns in the search platform to help you customize search for different scenarios. For example: Video search an...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-1
Search databases in SharePoint Database Description Crawl Stores tracking information and historical information about crawled items such as documents and URLs. It also stores information such as the last crawl time, the last crawl ID, and the type of update (add, update, delete) during the last c...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-2
Search analytics SharePoint analyzes both the content itself (search analytics) and also the way that users interact with it (usage analytics), and uses this information to improve search. Search analytics is about extracting information, such as links, the number of times an item is clicked, anchor text, data rela...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-3
When you create a Search Center site, SharePoint creates a default search home page and a default search results page. In addition, several pages known as search verticals are also created. Search verticals are search results pages that are customized to search specific content types, such as People and Videos, and the...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-4
Set up a Search Center in SharePoint Server How to create a Search Center Site Collection and enable crawling of your content in SharePoint Server Create a Search Center site in SharePoint Server Manage the Search Center in SharePoint Server Manage the Search Center in SharePoint Online Search Center web pa...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-5
Search Results web part The Search Results web part displays the results of a search query. By default, the Search Results web part is used on all default search vertical pages (results.aspx, peopleresults.aspx, conversationresults.aspx, and videoresults.aspx). The Search Results web part also sends the search result...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-6
Specify a different web part from which to get the results. Change the number of search vertical links to show. Change the appearance and layout of the web part. Additionally, on the ribbon, you can select Site Settings > Search Settings to make the following changes: Change the link display names. Ch...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-7
A search provider or source URL to get search results from; for example, the search index of the local SharePoint Search service. A protocol to use to get search results; for example, the OpenSearch protocol. A query transform, which can narrow results from the given search provider or URL to a specific subset of...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-8
OpenSearch 1.0/1.1 An external search provider (such as a remote search engine or feed) that uses the OpenSearch protocol to provide search results. The URL of the RSS feed of a search provider that uses the OpenSearch protocol. Exchange Exchange Web Services (EWS). An EWS URL. For more informatio...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-9
Query matches dictionary exactly Apply the query rule when the query exactly matches a dictionary entry. This entry can be a term in the term store, or an entry in the people names dictionary. Query more common in source Apply the query rule if the user's query is more commonly performed against a different r...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-10
For more information about query rules, see Manage query rules in SharePoint Server . Query transforms To provide search results that are appropriate for a user query, sometimes the query needs to be modified. You do this with query transforms. Default search verticals included with SharePoint, such as Videos, Peo...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-11
Result types To display search results differently, search results have to be sorted into different result types. A result type is a classification of a search result that distinguishes one search result from another. It is comprised of a collection of the following: Rules – One or more characteristics or condit...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-12
There are two primary types of display templates: Control display templates – Determine the overall structure of how the results are presented. Item display templates – Determine how each result in the set is displayed. The control display template provides HTML to structure the overall layout for how you w...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-13
The HTML file that is used for a display template is a fully-formed HTML document with head and body elements. Within the head element, there's a title element that specifies the display name for the display template. The text in this tag is what is shown when you do configurations in the SharePoint UI; for exa...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-14
Understanding how search results are displayed in SharePoint Server Understanding how item display templates and hit highlighting work in SharePoint Server How to create a new result type in SharePoint Server How to display values from custom managed properties in search results - option 1 in SharePoint Server ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-15
Search query .NET CSOM To use the query .NET CSOM, create a new instance of the T:Microsoft.SharePoint.Client.ClientContext class, which is located in the Microsoft.SharePoint.Client namespace in the Microsoft.SharePoint.Client.dll. Then use the query object model in the Microsoft.SharePoint.Search.Client.Query ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-16
GET requests http://server/_api/search/query POST requests http://server/_api/search/postquery Sample GET requests for Search REST service Request type Request URL Keywords http://server/site/_api/search/query?querytext='{KQL Query}' Selecting properties http://server...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-17
Permissions Search add-ins require only user-level permissions, where the attribute value is QueryAsUserIgnoreAppPrincipal . This permission lets you query the search add-ins based on the user's permissions. This means that search results are returned based on the user's ACLs. To grant permissions to the add-ins to...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
887e6c5227b8-18
See also Search customizations for SharePoint SharePoint Add-ins Search SharePoint Add-ins Add search capabilities to your SharePoint Add-ins Office 365 development and SharePoint PnP solution guidance
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/search-solutions-in-sharepoint-2013-and-sharepoint-online
fbadd524150f-0
The Core.JavaScriptCustomization sample add-in shows you how to use JavaScript to replace the text value of a SharePoint UI element with a translated text value, which is read from a JavaScript resource file. Note You are responsible for maintaining the translated text values in the JavaScript resource file. ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/localize-ui-elements-sample-app-for-sharepoint
fbadd524150f-1
In Site Administration , choose Language settings . On the Language Settings page, in Alternate language(s) , choose the alternate languages that your site should support. For example, choose Finnish and French , as shown in the following figure. Choose OK . Set the display language on your use...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/localize-ui-elements-sample-app-for-sharepoint
fbadd524150f-2
In Address , enter the URL of a website. Choose OK > Save . Create a site page On the host web, choose Site Contents > Site Pages > New . In New page name, enter Hello SharePoint . Choose Create . Enter Test page in the body of the page. Choose Save . Run the Core.JavaScriptCus...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/localize-ui-elements-sample-app-for-sharepoint
fbadd524150f-3
The AddJSLink method is part of the JavaScriptExtensions.cs file in OfficeDevPnP.Core . AddJSLink requires that you supply a string representing the identifier to assign to the custom action, and a string containing a semicolon delimited list of URLs to the JavaScript files that you want to add to the host web. No...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/localize-ui-elements-sample-app-for-sharepoint
fbadd524150f-4
RemoteManager_Inject(); } Note Some JavaScript files may depend on other JavaScript files to be loaded first before they can run and complete successfully. The following code construct from RemoteManager_Inject uses the loadScript function in scenario1.js to first load jQuery, and then continue running the...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/localize-ui-elements-sample-app-for-sharepoint
fbadd524150f-5
Note If your values for the Quick Launch link title and site page title differ from those shown in the preceding figure, edit the quickLauch_Scenario2 and pageTitle_HelloSharePoint variables in the JavaScript resource file scenario2.en-us.js or scenario2.nl-nl.js, and then run the code sample again. The scena...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/localize-ui-elements-sample-app-for-sharepoint
fbadd524150f-6
loadScript(jQuery, function () { SP.SOD.executeOrDelayUntilScriptLoaded(function () { TranslateQuickLaunch(); }, 'sp.js'); }); } function TranslateQuickLaunch() { // Load jQuery and if complete, load the JS resource file. var scriptUrl = ""; var scriptRevision = ""; // Iterate over the scri...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/localize-ui-elements-sample-app-for-sharepoint
fbadd524150f-7
// Page-specific changes require an IsOnPage call. // ---------------------------------------------------------- // Change the title of the "Hello SharePoint" page. if (IsOnPage("Hello%20SharePoint.aspx")) { $("#DeltaPlaceHolderPageTitleInTitleArea").find("A").each(function () { ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/localize-ui-elements-sample-app-for-sharepoint
f34ee70a89cc-0
The Core.CreateContentTypes sample shows you how to use the localization features of Office 365 on sites, lists, content types, and site columns. This code sample uses a console application to do the following: Create content types, site columns, and lists, and associate site columns with content types. Localiz...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/use-localization-features-in-office-365-sample-app
f34ee70a89cc-1
Choose ... (additional options), and then choose Language and Region . In My Display Languages , choose a new language similar to the one you set on the site by using the Pick a new language list, and then choose Add . For example, choose Finnish and French as shown. You can move your preferred language ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/use-localization-features-in-office-365-sample-app
f34ee70a89cc-2
Set different localized values for the title and description of a site by using the SetValueForUICulture method on the TitleResource and DescriptionResource properties on the Web object. Set different localized values for the title and description of a site by using the SetValueForUICulture method on the ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/use-localization-features-in-office-365-sample-app
f34ee70a89cc-3
web.DescriptionResource.SetValueForUICulture("en-US", "Hello World site sample"); web.DescriptionResource.SetValueForUICulture("fi-FI", " Hello World site sample - Finnish"); web.DescriptionResource.SetValueForUICulture("fr-FR", " Hello World site sample - French"); web.Update(); ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/use-localization-features-in-office-365-sample-app
f34ee70a89cc-4
// Localize the custom list that was created previously. List list = cc.Web.Lists.GetByTitle("MyList"); cc.Load(list); cc.ExecuteQuery(); // Localize the list title. list.TitleResource.SetValueForUICulture("en-US", "Hello World"); list.TitleResourc...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/use-localization-features-in-office-365-sample-app
f34ee70a89cc-5
private static void LocalizeContentTypeAndField(ClientContext cc, Web web) { ContentTypeCollection contentTypes = web.ContentTypes; ContentType myContentType = contentTypes.GetById("0x0101009189AB5D3D2647B580F011DA2F356FB2"); cc.Load(contentTypes); cc.Load(myConte...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/use-localization-features-in-office-365-sample-app
f34ee70a89cc-6
// Localize the site column. FieldCollection fields = web.Fields; Field fld = fields.GetByInternalNameOrTitle("ContosoString"); // Localize site column title. fld.TitleResource.SetValueForUICulture("en-US", "Contoso String"); fld.TitleResource.SetValueForUICul...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/use-localization-features-in-office-365-sample-app
a3d048ab9712-0
The code samples described in this section show you how to use provider-hosted add-ins to localize site features and UI elements in your SharePoint solution. The articles in this section will help you get started with and walk you through the primary scenarios that each sample illustrates. Article Sample ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/localization-solutions-for-sharepoint
3cdef1ac2eab-0
Support for % and # in files and folders is being deployed within SharePoint Online. Unfortunately, due to existing API structures and calling patterns, working with these file names can sometimes become ambiguous. You can find more background behind this on our developer blog . In summary, new APIs have been added ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/supporting-and-in-file-and-folder-with-the-resourcepath-api
3cdef1ac2eab-1
Note Do not simply find and replace existing usages of string-based URL APIs with ResourcePath.FromDecodedUrl . You will need to properly determine URL and potentially decode URLs first before using the ResourcePath.FromDecodedUrl(string) API. In cases where a codepath leading to a string-based SharePoint API ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/supporting-and-in-file-and-folder-with-the-resourcepath-api
3cdef1ac2eab-2
Microsoft.SharePoint.SPFile MoveTo(System.String, Microsoft.SharePoint.SPMoveOperations) MoveToUsingPath(SPResourcePath newPath, SPMoveOperations moveOperations) Microsoft.SharePoint.SPFile CopyTo(System.String, Boolean) CopyToUsingPath(SPResourcePath newPath, bool overwrite) Microsoft.SharePoint.SP...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/supporting-and-in-file-and-folder-with-the-resourcepath-api
3cdef1ac2eab-3
GetListItem(System.String) GetListItemUsingPath(SPResourcePath) The following CSOM objects return ResourcePath properties that can be used in these APIs. Although the old property also returns decoded URLs, the new ResourcePath property is provided for convenience, simplicity, and clarity in calling these A...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/supporting-and-in-file-and-folder-with-the-resourcepath-api
3cdef1ac2eab-4
Existing APIs that are not ambiguous about the URL format and can support # and % The following APIs only accept properly encoded URLs as input. They also support under-encoded URLs as long as the URL can be consumed without any ambiguity. In other words, at least # or % characters in the path of the URL should be % ...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/supporting-and-in-file-and-folder-with-the-resourcepath-api
3cdef1ac2eab-5
Web web = context.Web; // Get the parent folder ResourcePath folderPath = ResourcePath.FromDecodedUrl("/Shared Documents"); Folder parentFolder = web.GetFolderByServerRelativePath(folderPath); // Create the parameters used to add a file ResourcePath filePath = ResourcePath.FromDecodedUrl("/Shared Documents/hello...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/supporting-and-in-file-and-folder-with-the-resourcepath-api
3cdef1ac2eab-6
Add a sub-folder to a folder (.net) ClientContext context = new ClientContext("http://site"); Web web = context.Web; // Get the parent folder ResourcePath folderPath = ResourcePath.FromDecodedUrl("Shared Documents"); Folder parentFolder = web.GetFolderByServerRelativePath(folderPath); // Create the para...
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/supporting-and-in-file-and-folder-with-the-resourcepath-api