Skip to main content

Posts

SharePoint Online: Disable Top Navigation on a Teams Connected Site Using PnP PowerShell

If you've tried to disable the top navigation bar on a modern Teams-connected SharePoint site, you've probably noticed there's no obvious setting to do it. The UI doesn't give you a toggle. Site settings don't have the option. And the PowerShell properties you'd expect to work simply don't. This post covers exactly that scenario - what I tried, why each approach failed, and the single PnP PowerShell command that actually works. The Problem On a modern Teams-connected SharePoint site (template GROUP#0 ), the top navigation bar is visible by default. Unlike classic SharePoint publishing sites, there is no built-in UI option in site settings or site collection settings to disable it. If you want to hide the top navigation bar - for example because the site is associated to a hub that already provides navigation, making the site's own top nav redundant - you need to do it programmatically. What Didn't Work for Me 1. Site Settings and...
Recent posts

We're having trouble generating a transcript and captions right now. Try again in a bit.

 We're having trouble generating a transcript and captions right now. Try again in a bit. We received this error while trying to auto-generate captions for a video in SharePoint online. The error didn't provide any clue as to why this happens but then we noticed that the video was uploaded to Styles Library for some reason and once we moved that to another Document Library captions started working fine. Why this happens with videos in Styles Library we don't know, I couldn't find any relevant documents or articles but Styles Library isn't meant to be storing business content. Glad we found the solution and a simple solution!

Align content center - Microsoft 365 Team Sites

With modern pages in a Sharepoint Online collaboration site, content would be aligned center with white space on either sides but with Team sites the content is left aligned by default and plenty of white space on the right. However there is an easy fix to center align content in a Team site: 1. Navigate to the Settings from top right of the page by clicking the cog/gear wheel icon. 2. Select "Change the look" 3. Select Navigation from the options. 4. Select Horizontal as the option 5. Now the contents on all the pages will be aligned center. Note: This setting is site wide and not just for a page.

Microsoft Entra/Azure Portal: App registration pane versus Enterprise application pane

Difference between registering an application in the app registrations pane and adding an application in the enterprise applications pane in Microsoft Entra admin center or Azure portal. App registration is a way of reserving an app and URL with Azure Active Directory (Azure AD/Microsoft Entra), allowing it to communicate with Azure AD, hooking up any reply URLs, and enabling Azure AD services on it. When we have an application that we're developing and want to integrate it with Azure, we need to register our application in app registrations, where we'll configure the reply URL, logout URL, and API access, if needed. When we register our application, Azure AD assigns a unique application ID to it and lets us add certain capabilities, such as credentials, permissions, and sign-ins. The default settings allow only users from the tenant under which our app is registered to sign in to your application. App Registrations Pane New App registration screen It's possible to confuse ...

SharePoint Online - Export Term Store data

We had a requirement to export Terms from a particular Term Store Group in our SPO tenant but I couldn't find a script that goes in to Level 2 and Level 3 Terms or if there is one out there I couldn't find it. I checked many forums and blogs and thanks to all those contributors who inspired me to come up with this script. This isn't perfect by any means and I would like to improve and clean this up a bit but I'm sharing this here so its documented where I can fix this later and also probably help someone. The script will export the data in hierarchical form in a .csv file.   # Tenant url $url="<enter your SharePoint admin url>" # Term Group names as an array $groups = @("")  # location of CSV file $FilePath="Terms.csv"  # Variable to collect all data and export to CSV $results = New-Object System.Collections.ArrayList # Function to iterate through Term store function Get-TermsAsCSV {           try       {  ...

SharePoint Online (SPO) List Items Read-only

Issue : I came across a situation where certain items in a SPO List was read only and that too for just one user and this user is also a Site Owner with Full Control on the List and Site. It was a strange situation as other users were able to edit those List items - the affected user tried Data Grid option as well but couldn't edit. This was similar to item level permission set on the List but in this case it wasn't set. Resolution : After some external support it was found that this was caused by List Sync, once the sync was stopped the items were editable. Here are the steps: 1. Go to their List home page (App menu in the upper right of SharePoint -> All Apps -> Lists). 2. Find the list you'd like to stop syncing. 3. Click the ... button pictured below. 4. If the list is syncing, there will be a menu option for "Stop Syncing". Click on stop syncing to stop the syncing. If you want to disable sync for all users for a particular List then: Navigate to List S...

SharePoint Script Editor Webpart - Height

If you have worked with Script Editor webpart in IE you would have noticed that you do not get the flexibility to increase the height of it. You can use other browsers and get around this limitation. To work around this in IE isn't very difficult, use the following style and you can set the height of the webpart easily: <style> .ms-rte-embeddialog-textarea{ height:600px; </style> By manipulating the class ms-rte-embeddialog-textarea we can vary the height of the Script Editor webpart. The above style has to be within the webpart.