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.
Recent posts

SharePoint Online: Fixing “We’re having trouble generating a transcript and captions right now”

While working with a video stored in SharePoint Online, we encountered the following error when attempting to generate captions: “We’re having trouble generating a transcript and captions right now. Try again in a bit.” The message didn’t explain why caption generation had failed. After investigating where the video was stored, we found a simple workaround that resolved the issue in our environment. The problem The video had been uploaded to the Styles Library of a SharePoint Online site rather than a regular document library. The Styles Library is intended primarily for site styling and related assets, not as a general-purpose repository for business documents and videos. What resolved the issue We moved the video from the Styles Library to another SharePoint document library. After moving the file, we tried generating captions again. This time, caption generation worked. What we learned The location of a video within SharePoint may be worth investigating when troubleshooti...

How to Centre Page Content in a Modern SharePoint Online Team Site

When working with modern SharePoint Online pages, you may notice differences in how content is positioned between communication sites and team sites. In my experience, modern pages in communication sites generally presented their content centrally, with white space on both sides. However, pages in a Microsoft 365 group-connected team site appeared left-aligned, leaving considerable unused space on the right. Fortunately, SharePoint provides a setting that can help address this layout preference. The problem: Left-aligned page content When creating or editing modern pages in a SharePoint Online team site, the content may appear positioned towards the left side of the available page area. Depending on the page design and screen resolution, this can make the layout look unbalanced. The objective is to centre the page content without introducing custom CSS, JavaScript or an SPFx extension. How to change the content alignment In the SharePoint Online interface available when I originally...

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.