Binary Bits - Bits & Pieces

Features not available in SharePoint 2013 Workflow

SharePoint
Following are the features which are not available in SharePoint 2013 Workflow. Actions Stop Workflow Capture a Version of the Document Set Send Document Set to Repository Set Content Approval Status for the Document Set Start Document Set Approval Process Declare Record Set Content Approval Status Undeclare Record Add List Item Inherit List Item Parent Permissions Remove List Item Permissions Replace List Item Permissions Lookup Manager of a User Assign a Form to a Group Assign a To-Do Item Collect Data from a User Start Approval Process Start Custom Task Process Start Feedback Process Copy List Item (SharePoint Designer 2013 supports only the document-copying action.) Conditions If current item field equals va...

File Icons in SharePoint Search Results using Display Template

SharePoint
In SharePoint 2013 search results, the icon for a file type like .msg, .txt shows up as .html icon. In SharePoint 2010 this was overcome by mapping the icon file type in DocIcon.xml at WFE Servers. But now since access to WFE servers are restricted in on-prem environment and no access in O-365 environment, the only solution available is to do the following. Edit the existing display template (I use custom display template with results shown in table and following is based on that) or create a new template for existing for the following located at (SiteCollection/All Files/_catalogs/masterpage/Display Templates/Search) accessible by using SharePoint Designer. xxxSearchTableResults.html xxxSearchTableItem.html Add the following codes and it should show correct icons. ...
SharePoint Online Authentication

SharePoint Online Authentication

SharePoint
SharePoint Online Authentication The following is the interaction between Client Computer Office 365 Azure Active Directory (Azure AD) On premise Active Directory Federation Service (AD FS) (if available) Notes: The customer can use either On Premise AD FS or any identity provider or they can use Azure AD The root Federation Authentication (rtFA) cookie is used across all of SharePoint Online. When a user visits a new top level site or another company’s page, the rtFA cookie is used to authenticate them silently without a prompt. When a user signs out of SharePoint Online, all SharePoint Online cookies are deleted. Authentication Process User does anonymous request to secured O365 SharePoint Webpage (SharePoint.com) The SharePoint then requests the default id...
SharePoint 2013 Authentication – SAML Based

SharePoint 2013 Authentication – SAML Based

SharePoint
SharePoint 2013 - SAML Based Authentication The following is the interaction between Client Computer SharePoint Server Active Directory Federation Service (AD FS) Active Directory Domain Service (AD DS) Notes: AD FS & SAML Claims are not required if AD DS is the provider in which the forest and domains trust each other AD FS must trust the AD DS for which the AD FS is issuing the SAML security tokens Here the trust might be implicit as the AD FS is the member of AD DS domain and hence trusts the domain controllers AD FS must also trust the SharePoint locations Hence AD FS is configured with SharePoint's web application URLs as relying parties SharePoint server also must trust the AD FS's SAML token. This trust is obtained via a signed certificate which the...
SharePoint 2013 Authentication – Forms Based

SharePoint 2013 Authentication – Forms Based

SharePoint
SharePoint 2013 Authentication - Forms Based The following is the interaction between Client Computer SharePoint Server ASP.NET Membership provider The Form Based Claims Authentication Process User does anonymous request to secured SharePoint Webpage SharePoint responds with form based login page User types in the credentials and sends back using the client computer SharePoint server then validates the credentials with membership provider SharePoint server then queries the roles provider for user's associated roles This becomes the role claims for user's account SharePoint then creates a claims based security token using Security Token Service Then SharePoint stores this security token with Distributed Cache Service on the farm SharePoint server then generat...
SharePoint 2013 Authentication – Windows Claims

SharePoint 2013 Authentication – Windows Claims

SharePoint
SharePoint 2013 - Windows Claims Authentication The following is the interaction between Client Computer SharePoint Server Active Directory Domain Service The Windows Claims Authentication Process User does anonymous request to secured SharePoint Webpage SharePoint requests back Windows Credentials (It can be a NTLM or Kerberos or basic) If user is in intranet zone, the browser sends back the logged in credentials to SharePoint, else user is prompted for credentials For both the cases the browser send back the credentials to SharePoint SharePoint then validates this credentials with Active Directory Domain Services (AD DS) AD DS then responds back to SharePoint with Windows Security Token SharePoint then checks, to which security groups the user belongs in AD ...
Hide Available Refiners in SharePoint search refinement panel

Hide Available Refiners in SharePoint search refinement panel

SharePoint
Recently one of the customer had a strange request where the customer wanted to Hide "Available Refiners" in SharePoint search refinement panel. The "Available Refiners" is available in "Drop Down" type refinement panel. When the refinement panel is being loaded, SharePoint executes a JavaScript function named AddPostRenderCallback. This would be available in the Refinement Display Template located under MasterPage/Search Gallery. The actual method looks like below code which is taken from O365. [crayon-57e797c67a68b945614678/] To the above original code I made a small change so that "Clone all the elements" code executes only when user has selected a refiner. [crayon-57e797c67a6a2371321634/] To the above orignal code I added the following code to hide the "Available Refiners...
Clear SharePoint Search Results

Clear SharePoint Search Results

SharePoint
Recently I had a requirement for OOTB search Box + Result where the customer wanted to clear the search results regardless of any refinement selected or not. To implement this, in the display template HTML the following was added. Do note that if refinements are there, the commented single line of code didn't work and I had to replace the entire # as blank. Do check the original source (mentioned below) for more information. [crayon-57e797c67ba92938066965/] The source for the above code is Add a “Clear Filters” link to your search page in SharePoint 2013