Now a day’s authentication is the most important factor in a cloud environment. Many of the organizations are utilizing SharePoint Online as their Content Management System, it is basic that the delicate information does not slip into false hands. Therefore, Multi-Factor Authentication for Office 365 becomes possibly the most important factor. Multi-factor authentication is a two-step process. In addition to […]
MFA (Multi Factor Authentication) Authentication using PowerShell in SharePoint online
Set List Properties By WebRequest
There are many ways in CSOM to set the list properties of a SharePoint site but there are a few properties which we can’t set directly from list object. In this blog, I will explain how to set those properties using WebRequest. There are many ways in CSOM to set the list properties of a SharePoint site. But there are […]
How to create structural navigation nodes both in quick launch and top navigation node
Sharepoint customizes navigation feature so that user can navigate to a different location and access them quickly. You can add, edit, or remove links on the left-hand menu (Quick Launch menu), the top menu (Top Navigation Node) through edit links. In this blog, we are going to create structural navigation node that is root node having subnodes in both top […]
Identify The Modern Pages And Copy Them To Another Site Collection
In this blog, I am going to perform two actions – Identify if a page is a modern page or not. Migrate or copy that modern page (including its content) to another site collection or site (destination location) I am going to accomplish these tasks by using CSOM (Client Object Model). After identifying the modern page, I will copy the […]
Wildcard search of Users using CSOM in SharePoint
In this blog, I will explain how to find users using ClientPeoplePickerSearchUser class. There are many ways in CSOM to get the users from SharePoint site or web but I did not find any proper way to perform wildcard search of users from SharePoint site using CSOM. For e.g lets, I want to find all users present in site collection […]
Add and Remove Site Columns from Site Content Type
In this blog post, I am going to add and remove site columns in existing site content type. Content types empower you to arrange, oversee, and handle content reliably across your sites. To view all content types used in the site collection. Open SharePoint site Navigate to site settings ->Under Web designer galleries -> Click Site content type or navigate […]
How to Create Web Part Page in SharePoint 2013/2016/2019 Programmatically using CSOM?
Basically, CSOM has not exposed any inbuilt functions which will help us in creating web part page template in SharePoint 2013/2016/2019. By using CSOM functions we can create wiki pages, modern pages and also publishing page but we cannot create web part pages. In this blog post I am going to use “Web Browser Control” to achieve this task. By […]
Change User Regional Setting to “Always follow Web” using PowerShell
I have written this PowerShell script which is related to user regional setting. This below-mentioned code block will help us to change user regional setting to “always follow web” regional setting. [code lang=”c”] Write-Host -ForegroundColor cyan ‘Please provide the site url’ $SiteURL = Read-Host “Site Url” try { Add-PSSnapin “Microsoft.SharePoint.PowerShell” $SPsiteURL = Get-SPSite $SiteURL $SPserviceContext = Get-SPServiceContext $SPsiteURL $SPweb = […]
How to Inject your Custom JavaScript in Modern Pages on Page Load
This SPFx functionality helps to inject your custom JavaScript file in your modern site pages on page load. [code lang=”c”] export default class MySPFXApplicationCustomizer extends BaseApplicationCustomizer<IMySPFXApplicationCustomizerProperties> { private _customJsUrl: string = “https://sharepointdomain.net/scripts/MyCustonScript.js”; @override public onInit(): Promise<void> { let scriptTag: HTMLScriptElement = document.createElement(“script”); scriptTag.src = this._customJsUrl; scriptTag.type = “text/javascript”; document.getElementsByTagName(“head”)[0].appendChild(scriptTag); return Promise.resolve<void>(); } } [/code] This solution is brought to you […]
How to Set Permanent Redirect in SharePoint Online for a Clean User Experience?
In case you ever feel the requirement of setting stable redirects in SharePoint Online, you can consider different ways to do that. However, for a clean user experience we have one solution that you might like. Whether you have a marketing site collection or a home site collection, redirects may look incredibly simple, but in some cases it is not. […]