Sharepoint Online and Office 365 Administration
Sharepoint Online and Office 365 Administration
Every effort has been made in the preparation of this book to ensure the
accuracy of the information presented. However, the information contained
in this book is sold without warranty, either express or implied. Neither the
author nor C# Corner will be held liable for any damages caused or alleged
to be caused directly or indirectly by this book.
Page 2
About the Author
MICROSOFT CERTIFICATION:
Page 3
5. Core Solutions of Microsoft ●
SharePoint Server 2013 (70-
331).
6. Managing Office 365 identities
and Requirements (70-346).
7. Enabling Office 365 Services
(70-347).
C# Corner MVP
Project Lead
Scrum Master
MCSA, MCP
MCTS, Author
https://www.c-sharpcorner.com/members/habibur-rahaman6
https://www.linkedin.com/in/habibur-r-a26151176/
https://twitter.com/Habibur_IND
Page 4
What will you learn from this book?
I have tried to author this book in an easy-to-follow way, and it can be used
as a reference book or manual while you are administering SharePoint
Online from Office 365. As you follow along through the end of this book,
you will learn the below:
● Overview of SharePoint
● History of SharePoint
● Why should we use SharePoint?
● Overview of Office 365
● How to set up a trial tenant?
● Administering Office 365
● Various report management possibilities in the Office 365 dashboard
● Overview of SharePoint Online Admin Center
● Administering SharePoint Online Admin Center from Office 365
● Details on understanding hub sites and how to manage them.
● Manage hub sites report from SharePoint Online
● Manage workflow report from SharePoint Online tenant
● Various navigation setups in SharePoint Online
Page 5
Table of Contents
Chapter 1: Introduction to SharePoint 12
What is SharePoint? 12
Key features of SharePoint 12
History of SharePoint 16
SharePoint generation from the year 2000 to 2020 17
Key take-away: 23
Is SharePoint replaced by Microsoft Teams or is it dying? 26
Chapter 2: Introduction to office 365 28
What is Office 365? 28
Advantages of Office 365 29
Registration to Office 365 E3 trial account 30
How to login to the office 365 admin center? 49
Chapter 3: Manage Microsoft 365 admin center report dashboard 54
Out of the box – a list of cards are available in the admin center: 54
List of cards are available to add in Dashboard in the Microsoft 365 admin center:
55
Default Microsoft 365 or Office 365 admin center dashboard: 55
How to add additional card to admin center dashboard page: 57
How to remove a report card from the Microsoft 365 admin center home page
dashboard: 60
Manage users in office 365 61
Mange active users in office 365 61
Manage contacts in Office 365 62
View Guest Users report in Office 365 63
View Deleted users report in Office 365 64
Page 6
Manage groups in office 365 65
Introduction to Office 365 groups 65
How to navigate to Office 365 group dashboard: 65
Types of groups in Office 365 66
Office 365 – group 67
How to create an Office 365 group? 68
Distribution group: 76
Mail-enabled Security group 77
Security group 79
How to edit and delete a group from the Office 365 dashboard: 80
Chapter 5: Billing management in Office 365 82
Purchase Service 82
Products & services 83
Licenses Report 84
Bills & Payments management 85
Billing Accounts 86
Billing Methods 87
Billing Notification 88
Chapter 6: Introduction to SharePoint Online Admin center 90
What is SharePoint Online Admin center? 90
How to navigate to SharePoint from Office 365? 91
Reports available in the SharePoint admin center home page: 94
SharePoint file activity report 94
SharePoint site usage report 95
Message Center 96
Service Health 97
Chapter 7: Administering SharePoint admin center 100
Various sites report in SharePoint admin center: 100
Active Sites 101
How to land into this Active Sites report? 102
Page 7
How to create a site from SharePoint online admin center? 103
Site creation page – SharePoint Admin Center: 104
Manage the active site owners from admin center: 105
Manage hub site from SharePoint admin center: 106
How to export the active sites report in CSV: 107
Example of downloaded sites csv report: 108
How to search the active sites: 109
Views in Active Sites: 109
Customizing the view columns in active sites report: 110
Bulk Edit in SharePoint admin center (active sites): 112
Deleted Sites 113
Policy in SharePoint admin center 114
Sharing – SharePoint admin center: 115
Access Control – SharePoint admin center: 116
Centrally settings in SharePoint admin center: 120
Consolidated global setting in the Tenant setting page: 125
Show or Hide App Tiles 126
Site Collection Storage Management 126
Admin Center Experience 127
Delve (powered by Office Graph) 127
Enterprise Social Collaboration 128
Streaming Video Service 129
Personal Blogs 130
Site Pages 130
Global Experience Version Settings 131
Information Rights Management (IRM) 132
Details description about IRM in SharePoint: 132
Introduction to IRM: 133
Information Rights Management (IRM) in tenant settings page: 134
IRM settings in Document library: 138
Page 8
Key take-away – IRM: 143
Permissions in IRM: 144
Site Creation 145
Subsite Creation: 147
Connections from sites to Office 365 groups: 148
Custom Script 148
Preview Features 149
Connected Services 150
Mobile Push Notifications - OneDrive for Business 150
Mobile Push Notifications – SharePoint 151
Comments on Site Pages 151
How to navigate to classic features from modern admin center? 154
Classic features in modern SharePoint admin center: 154
How do we navigate to the classic/old site collection create page? 160
Data migration tool in SharePoint admin center: 161
Manage script editor webpart in SharePoint Online 162
How to enable script editor webpart in SharePoint online? 162
Verify that script editor web part is not available by default: 162
Verify that script editor web part is available after executing the PowerShell
Script: 166
Why does Microsoft not allow us to add the script editor web part by default? 167
If we skip the custom script enable setting and execute the above PowerShell
command – will the script editor be available in the page? 167
Chapter 8: Manage hub sites in SharePoint Online from admin center 169
Introduction to hub site 169
What is a Hub Site in SharePoint online? 169
Hub Site architecture in SharePoint online 170
Why Hub Site in SharePoint online? 170
How to create a Hub Site in SharePoint online? 171
How to add a Team site or communication site to the Hub Site? 173
Page 9
Some key features or use cases of Hub Sites. 176
How to create a new hub site using PowerShell? 176
Register a site as a hub site by using the Register-SPOHubSite cmdlet: 177
Set permissions for specific users: SPOHubSiteRights 177
Associate multiple sites to a hub site: Import-Csv to Add-PnPHubSiteAssociation
177
Manage hub site report in SharePoint Online 177
PnP PowerShell script to get all sites connected to a hub site: 178
PnP PowerShell script to get all sites connected to hub site: Test 181
Let’s see the exported hub sites report – how does it look like? 182
View all sites that are connected to a hub site using SharePoint admin center
URL (UI): 183
Chapter 9: Workflow Report from SharePoint Online tenant 188
Export all workflows from SharePoint Online Tenant using PowerShell CSOM: 188
Description about the export workflow report code: 194
Prerequisites to execute the PowerShell CSOM script: 197
How to Install PnP PowerShell: 197
Chapter 10: Site creation template selection in SharePoint Online 199
Introduction 199
What is a modern team site in SharePoint online? 203
What is a communication site in SharePoint online? 203
When should we use a team site or communication site template? 204
Create a modern team site SharePoint online – manually 205
Create a modern team site using PnP PowerShell 212
New-PnPSite – create a modern SharePoint online site: 212
Create a modern team site in SharePoint Online using PnP PowerShell: 213
Other parameters in creating a modern team site – New-PnPSite: 214
How to create a SharePoint communication site? 215
Create a communication site in SharePoint online, using PnP PowerShell: Script
execution 217
Create a communication site in SharePoint online – PnP PowerShell: 218
Page 10
Other parameters in creating a communication site – New-PnPSite: 220
Chapter 11: Navigation in SharePoint Online 222
Introduction to navigation 222
Site Navigation (Local Navigation) 223
Site Collection Navigation (Global Navigation) 224
Hub site navigation 225
Megamenu Navigation 226
Personal Navigation 227
Summary 230
Resources 237
Reference URLs 237
Page 11
Chapter 1: Introduction to SharePoint
What is SharePoint?
● It provides end users the ability to customize the site without the need
of a developer. (The end user should know a little Html, CSS & script)
Page 12
● It provides advanced collaboration like Wikis, blogs, forums, meetings
etc.
● Custom form – we can develop and integrate any custom form like
Visual Studio, PowerApps, Nintex form, InfoPath form etc.
Earlier, the “Add-ins” were known as “apps”; as the name implies this is an
additional plugin or “add in” to the existing SharePoint page or functionality.
https://globalsharepoint2020.sharepoint.com/sites/allcompany/_layouts/15/
storefront.aspx?source=%2Fsites%2Fallcompany&sname=All%20Company#
prc=0
We can see that lots of apps are available – some are free, and some are
paid. We can get the apps from all categories needed to run a business, to
name a few categories:
● Business
Page 13
● Clocks & Calendars
● Communication
● Content Management
● CRM
● Education
● Financial Management
● IT/Admin
● Productivity
● Project Management
● Sales Marketing
So, we can see that apps are available from all categories of business, and
we can plug these into the SharePoint sites based on the needs and fits. This
is how “Add-ins” really increase the power of SharePoint, and as a result it
increases the user adoption and acceptance of SharePoint.
Page 14
Example of SharePoint App Store:
As the scope of this book is administering SharePoint Online and Office 365,
I am not going to go into details about each feature. I will plan for another
book for these features. ☺
Page 15
History of SharePoint
The initial release of SharePoint was March 28, 2001. Since then through
January 2020, it has released many versions – as of now the version history
is as below:
Notes:
Page 16
SharePoint generation from the year 2000 to 2020
2020
2019
Page 17
● Azure Information Protection Analytics (preview).
● Signals: Added visual cues about the status of a file, such as check-
outs, sharing, DLP blocks, or missing metadata to modern views.
● Sticky column headers: For large lists and libraries, the column
headers will remain visible as you scroll vertically or horizontally in
larger lists and libraries.
● Easy page and news publishing experience from the site pages library.
2018
Page 18
● Responsive UI.
2018
● News – pinning
Page 19
Introduction of hub site was a major release
from Microsoft which emphasized the need to
adopt flat architecture rather than nested sub
site-based architecture.
2017
2016
● Introduction to MinRoles
● Other than port 25, non-default ports also can be used for connection
encryption.
Page 20
● Hybrid mode example – search, content type, manage metadata
group, etc.
2012
● Cross-Browser Support
● Drag/drop Uploads
2010
SharePoint 2010
Page 21
● Overhaul of the Shared Service Providers in favor of Service
Applications and the ability to pool them
● PowerShell support
● Two-way BCS
2006
SharePoint 2007
2003
SharePoint 2003
Page 22
2000
Key take-away:
Page 23
SharePoint journey from 2000 to 2020
Page 24
Microsoft states that SharePoint has 190 million users across 200,000
customer organizations.
Page 25
● Easy to integrate with other third-party products: Easy to
integrate with third party software like, Nintex, Muhimbi PDF
converter, Bamboo Webpart etc.
In one of the open forums someone asked this question – my reply is below:
Page 26
management, on the other hand Teams is used for channelizing your
development teams to bring more collaboration among team members - it’s
recommended to use Microsoft teams for team communication. One of the
major advantages of MS team is documentation, whatever your project,
team member communication with each other will be documented to the
respective channel - so if a team member has left the project or organization
you won't be dependant on his/her email box... as explained both have their
own scope, so SharePoint is not all replaced by teams. And when it comes to
the second part of your question, is SharePoint dying? The answer is
absolutely not. Whether it is the on-premise version or Online, still, 50
percent of enterprises are maintained by SharePoint across the globe,
moreover, in the USA, the majority of the health care industries still use
SharePoint and they will continue … and many people think on-premise
SharePoint will die - this is also incorrect, although the current market
trends are to move to the cloud, however, still many companies do not
prefer to move all content to the cloud due to security reasons, and that is
the reason Microsoft is still releasing the next version of on-premise
SharePoint every three years.
Notes:
Page 27
Chapter 2: Introduction to office 365
It has various plans – based on the subscription to the plan, we can use the
below products as software as services:
● Exchange (Outlook)
● OneDrive
● SharePoint
● Teams
● Yammer
● Dynamics 365
● Power Automate
● Power Apps
Page 28
Advantages of Office 365
1. Scalability
3. Easy collaboration
As the scope of this book is administering SharePoint online from the Office
365 admin center, I am not going into details on this; rather, I will focus on
the SharePoint admin center.
Page 29
Registration to Office 365 E3 trial account
For the free subscription, go to the below link and complete the registration,
the below sample screen shot is given – the rest is self-explanatory, and
you can complete the registration.
https://signup.microsoft.com/signup?offerid=B07A1127-DE83-4a6d-9F85-
2C104BDAE8B4&dl=ENTERPRISEPACK&ali=1%20%20
At a high level, the steps for setting up a trial account are as below:
2. Select the plan you want to sign up for - select Try free for 1 month
(Office 365 E3 trial).
4. The signup process may take several minutes to complete. Once it's
complete, you'll get more details on how to start using your
subscription.
Page 30
Click on the below the registration page:
https://signup.microsoft.com/signup?offerid=B07A1127-DE83-4a6d-9F85-
2C104BDAE8B4&dl=ENTERPRISEPACK&ali=1%20%20
Using just the below 4 steps, we can have a ready-to-use Office 365 trial
account:
https://signup.microsoft.com/create-account/signup?OfferId=B07A1127-
DE83-4a6d-9F85-
2C104BDAE8B4&dl=ENTERPRISEPACK&ali=1&products=cfq7ttc0k59j:0009
Page 31
In the next screen, click on the “Set up account” button as like below :
Page 32
Steps 2: Tell us about yourself
● First Name
● Last Name
Page 33
● Country or region – pick your country from the list.
Once you click on the “Send Verification Code” button, you will receive a
6 digits numeric verification code in your registered mobile number which
you just entered in the previous step.
Page 34
Enter the verification code into the below verification code textbox.
Page 35
Then, click on the “Verify” button.
● Enter your business name in the “your business” textbox without any
space. Here you can enter any meaningful text.
Page 36
Then, click on the “Next” button.
Then, we will get the below screen where we need to create the User ID and
Password.
● Name – any meaningful text, try to give an easy name which you can
remember easily.
Page 37
● Confirm password – the same as Password.
Finally, click on the “Sign up” button, then wait for some time, before we
get the “You’re all set” message.
Finally, we will get the below screen “Go to Setup” which will take us to the
“You’re all set” screen.
Page 38
Note down the below login information for future use.
Sign-in page
https://www.office.com/
Your user ID
[email protected]
Page 39
From the above screen, click on the “Go to Setup” button. After a few seconds,
it will land into the “Microsoft 365 admin center” home page
– https://portal.office.com/adminportal/home?ScenarioId=signup#/m365setupwiza
rd
Notes:
● It will ask you to enter the Username and Password – get these details
from the previous steps.
Page 40
Click on the “Continue” button to complete the setup.
Select the domain as “Use default domain ”Your domain you have just
created”
Note:
● By default, the first radio button will be selected – “Add a domain you
already own”.
Page 41
Then, click on the “Use this domain” link, this will take us to the “Add
users and assign licenses” page which you can ignore as this is trial setup.
Click on the “Do this later” link which will take us to the “Activate records”
configuration page.
Page 42
Click on the “Continue” button.
In the “Feedback” page, if you want to share your feedback about the
Office 365 Product, you can type something and click on the “Submit” button
– this is optional.
Page 43
Finally, click on the “Go to admin center” link, now the “Microsoft 365
admin center” page looks like below.
Page 44
With this setup, the trial account for office 365 is completed.
Now let’s look at how to see SharePoint and other products like Teams,
Exchange option from the “Microsoft 365 admin center” after completing
the first setup.
Page 45
Click on the “Show all” link from the above admin left panel, then you need
to scroll down to the middle of the page – as below:
After clicking on the “…Show all” link, if we scroll down to the page, we
can see the Exchange, SharePoint, Teams and All Admin centers link
under the “Admin centers” section.
Page 46
Note:
● We may not see the SharePoint teams or others after just creating the
Office 365 trial set up as this takes some time to complete these
internally (it might take up to 30 minutes or sometimes it will be
available immediately), so be patient with this.
After creating the new office 365 trial account, if we navigate to the
SharePoint admin center page (https://globalsharepoint2020-
admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/home), then
“Active Sites” report, we’ll see 4 additional team sites have been created;
i.e., allcompany, allcompany230, allcompany454, allcompany489.
Page 47
Earlier, we just had only one communication site, still, we have that like
below:
Page 48
Summary:
● In this way we’ll get our trial tenant in office 365, next we will see how
to login to office 365.
● I personally prefer exploring on the trial tenant over the actual one
because it has no limitation, and I can explore the product without any
restrictions.
Page 49
If we click on the “All apps” arrow button – we can see the below dashboard:
Page 50
Apps available in the Office 365 home page.
Page 51
Note:
Page 52
Page 53
Chapter 3: Manage Microsoft 365 admin center report dashboard
Using Microsoft 365 or Office 365 admin center we can manage the cards in
the admin center’s home. This means we can add and delete cards in the
dashboard, which will help office 365 administrators manage the tenant.
Out of the box – a list of cards are available in the admin center:
When we log into the “Microsoft 365 admin center” home page, we will get
the below out of the box report:
● User Management
● Message Center
● Billing
Note:
● The above list of reports is not fixed – over a period of time, Microsoft
changes this display report – so while you are referring to this book for
your tenant, it might not be the same but we shouldn’t be worried
about this because it is completely customizable in a few clicks. In the
section, we will see how to manage dashboard reports.
Page 54
List of cards are available to add in Dashboard in the Microsoft 365 admin
center:
Below are the cards available in the dashboard gallery, we can add or
remove these in the home page
● Message Center
● Service Health
● GDPR Information
● Domains
Once we login to the “Microsoft 365 admin center” home page, we will get
the below screen:
Page 55
Page 56
How to add additional card to admin center dashboard page:
Go to the Microsoft 365 admin center home page -> click on “+ Add card”
Page 57
Then at the right-side panel the below “Add cards to your page” will be
opened. Here we can see all available cards to add in the home page.
Page 58
Hover the mouse on the card which you want to add, then we will get the
“+” icon, click on that. As an example, we will add “Service health” here.
Then we can see the “Service health” report card is added in the dashboard.
Page 59
How to remove a report card from the Microsoft 365 admin center home
page dashboard:
In order to remove a card from the Microsoft 365 admin center dashboard,
identify the card which you want to remove, click on the ellipses (…)
available on the card header and then click on the remove button from the
menu. After removing, the card will be moved to the “Add Card” section
again in the right-side panel from where we have added it.
Page 60
Chapter 4: Administering office 365
In this section, I will explain how we can manage active and deleted users
from Office 365.
In order to manage the active users in office 365, first we need to locate the
‘active users’ section in the Office 365 home page.
Page 61
If you have already logged in to the “Microsoft 365 admin center” home
page, you need to click on active users link from the left panel – and in the
center panel we can see the ‘active users’ dashboard, using this report we
can manage the active users like:
● Add a user
● User Templates
● Search user
Page 62
Using the “Contacts” navigation we can manage the contacts like add,
delete, edit. Click on the “Add a contact” icon to add a new contact like
below:
From the “Guest users” navigation, we can view all guest users available in
the tenant like below:
Page 63
View Deleted users report in Office 365
Using the “Deleted users” navigation, we can view all deleted users in the
tenant like below and also, we can export all deleted users into a csv file.
Page 64
Manage groups in office 365
In this section, I will explain about what the groups in Office 365 are and
how we can manage them.
If your AD sync service is enabled and synced with Azure AD – we can see
all local active directory groups in the office 365 dashboard as well.
You can add or remove people to the group just as we do in any other
group-based security object in Active Directory.
https://admin.microsoft.com/Adminportal/Home?source=applauncher#/grou
ps
Click on the “Groups” from the left panel – then in the center panel we can
see all groups are available. From there we can create, update, delete the
group.
Page 65
Types of groups in Office 365
There are four types of groups in office 365. Please see the below screenshot
where each type of group description is explained.
● Office 365
● Distribution
● Mail-enabled Security
● Security
Page 66
Office 365 – group
This allows teams to collaborate by giving them a group email and a shared
workspace for conversations, files, and calendars. This is a default setting
while creating the group and this is the recommended one.
Page 67
How to create an Office 365 group?
● Group type
● Basics
● Settings
● Owners
● Finish
Page 68
From the office 365 group dashboard – click on add a group icon like below:
Page 69
Enter the group name and description, then click on the Next button.
Page 70
Enter the “Group email address.”
Select the “Privacy” – we can select privacy as Public or Private, the default
selection is “Public.”
We can select “Create a team for this group” which is optional – this will
create a team in Microsoft Teams.
Page 71
Then, click on the Next button.
Group owners can add or remove members and have unique permissions
like the ability to delete conversations from the shared inbox or change
different settings about the group. Group owners can rename the group,
update the description or picture and more.
Page 72
Click on next.
Note: If you want to change any setting in the group creation, you can
modify that from here.
Page 73
If you are fine with your group creation parameters – click on the “Create
group” button.
New group create status message is shown as successful – the group has
been created successfully.
Page 74
Navigate to the below group dashboard page,
https://admin.microsoft.com/Adminportal/Home?source=applauncher#/grou
ps
We can see the new Office 365 type group that we have just created, it
appears here.
Page 75
Distribution group:
Note:
Page 76
The creation of a distribution group is the same as an Office 365 group –
only in the choose a group type selection step, we need to select the type as
“Distribution”, the rest of the steps are self-explanatory, so I am skipping
this section.
It has all the functionality of a distribution list and additionally can be used
to control access to OneDrive and SharePoint. So, if you want to manage
Page 77
access in SharePoint and OneDrive along with group mailbox functionality –
this is the right choice.
Page 78
Security group
This type of group is mainly used to control the access in SharePoint and
OneDrive and can be used for mobile device management in Office 365.
The creation of a “Security” group is the same as an Office 365 group – only
in the choose a group type selection step, we need to select the type as
“Security”, the rest of the steps are self-explanatory, so I am skipping this
section.
Page 79
How to edit and delete a group from the Office 365 dashboard:
From the Office 365 group dashboard panel – select the group you want to
delete or edit.
Page 80
Next to the group name, click on three dots – there we can see the
dropdown list to manage the group, like edit name, edit description, delete
group. Or we can do the same operation from the group ribbon toolbar as
highlighted below as well:
Page 81
Chapter 5: Billing management in Office 365
In this section, I will explain how we can manage the following billing related
tasks in Office 365:
● Purchase Service
● Licenses Report
● Billing Accounts
● Billing Methods
● Billing Notification
Purchase Service
Using this module, you can manage the purchase service of your tenant.
From the left panel “Billing” section -> Purchase services, we view all
available plans from office 365 with their prices for the purchase.
Page 82
Products & services
Using the “Product & services” navigation, we can view current status of the
subscription like type of subscription, maximum and used users, when the
license expires, etc.
Page 83
Licenses Report
Using the “Licenses” navigation, we can see what active licenses are
available as part of your subscription along with their details status. Here, in
my free trial account, I have Office 365 E3 and Microsoft Flow Free license.
Page 84
Bills & Payments management
Using this “Bill & Payments” link we can see all past invoices and also we can
configure the payment methods from the “Payment methods” tab
configuration.
Page 85
Billing Accounts
Page 86
Billing Methods
Using the billing methods navigation, we can add a new billing method. To
add a new billing method, follow the below steps:
Then click on the add a payment method and fill up the payment method
details in the form opened the right-side panel and click on the “Add” button.
Page 87
Billing Notification
Using the “Billing Notification” report, we can see all notifications related to
your billing.
Page 88
Page 89
Chapter 6: Introduction to SharePoint Online Admin center
This will be a very interesting chapter where we will see all SharePoint
related administration tasks and how we can manage them from the Office
365 admin center (Microsoft 365 admin center).
Before getting into the modern SharePoint Online Admin Center – we should
recap our knowledge on administration of on-premise SharePoint. In simple
words, the SharePoint Central Administration is an IIS web application,
which gets created automatically during the installation of the SharePoint
product. This web application becomes central, or the hub of all web
applications developed and hosted via SharePoint. Using this, we can create
a new application or site collection and manage them and we can share the
resources across all web applications.
Of course, the classic admin center is an older one. Now, we’ll explore the
modern admin center.
Page 90
How to navigate to SharePoint from Office 365?
Once we land on this Microsoft 365 admin center page – click on “Show all”
from left panel as highlighted below:
Then scroll down the left vertical bar and we’ll see the below SharePoint:
Page 91
Note:
● After creating the new trial tenant – we’ll not see the “SharePoint”
here immediately. This takes time to get it provisioned, so be patient.
It might take 30 – 40 minutes.
Click on “SharePoint” then we’ll land into SharePoint Admin Center home
page:
https://-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/home
Page 92
Before the modern SharePoint Admin center, the landing page was:
Now we’ll explore all options available in the modern SharePoint Admin
center.
Page 93
Reports available in the SharePoint admin center home page:
Once we land into the SharePoint Online admin center page, we can see the
below out of the box report available in the home page. Using this we can
see the overall consolidated summary of SharePoint Online.
● Message Center
● Service Health
As the name implies, this gives detailed activity reports graphically of each
file type for the last 30 days, like Viewed or Edited, Synched, Shared
Internally and Shared Externally etc.
Note: If an activity occurs multiple times in one day on the same file, the file
is counted only once for that day.
Page 94
SharePoint site usage report
This gives the detailed graph of total and active sites for the last 30 days.
The “Active” sites are anywhere users view a page or view, modify, upload,
download, share, or sync a file.
Page 95
Message Center
Page 96
Service Health
In the Service health section of the home page, we can see whether the
SharePoint Online service is healthy, or if it’s experiencing an active advisory
or incident, click on “View all services” to know more about all services, then
we’ll land into the service health detailed page, this gives the health status
of each type of service.
Page 97
If we put it all together the admin center home page looks like below:
Page 98
Page 99
Chapter 7: Administering SharePoint admin center
In this section, we will learn about how we can manage the below site
management activities:
Active Sites
• Create Site
• Delete Site
• Mange the site owner
• Manage the Hub site
• Manage the Site Sharing
• Export the site consolidated report as csv
• Search the sites with name, URL etc.
• Filter the sites based on various inbuilt views.
• Customizing the columns.
• Bulk Edit
Page 100
Views in Active Sites:
Deleted Sites
Active Sites
This is the master site report – using this we can manage all sites, all
operational sites from a tenant will be available in this location and we can
do the below things.
● Create Site
● Delete Site
● Bulk Edit
Page 101
How to land into this Active Sites report?
From the SharePoint admin center home page, go to Sites -> Active Sites.
Page 102
How to create a site from SharePoint online admin center?
Click on + Create button and we’ll get the site creation UI – by default Team
Site template is selected however, we can select Communication site
template as well, and proceed to the next step of site creation page; it’s self-
explanatory.
Page 103
Site creation page – SharePoint Admin Center:
Here you will learn how to create a site. Once you click on the “+create” site
and select the template (either team site or communication site) then, you
need to enter the below:
● Group owners – you can give your trial tenant username here.
Page 104
Click on the Next button two times – the site will be created.
In this section you will learn how to manage the site owner from admin
center, like you can change or add a new site group owner.
Select the site as mentioned below and click on three dots (…) – using this
we can manage the site owners.
Page 105
Manage hub site from SharePoint admin center:
In this section, you will learn about how to manage the hub site from admin
center.
For hub site details, I will explain in a separate section. Here I am focusing
on how to manage the hub site.
To manage the hub site sharing and deletion follow the below steps:
Select a site -> Click on the three dots (“…”), then you can select the below
choices:
• Hub
• Sharing
• Delete
Page 106
How to export the active sites report in CSV:
In this section, you will learn about how you can export all active sites into a
CSV file from the admin center.
We can export all the active sites into a csv file – for this we need to click on
Export button as mentioned below:
Page 107
Example of downloaded sites csv report:
Once we export the actives report into CSV file and then, when we open the
exported CSV file – we can see the file content in the below format.
Page 108
How to search the active sites:
In this section, you will learn about how to find or search an active site from
the active sites dashboard.
Type site name or URL in the search site box as mentioned below and hit the
enter key.
In this section you will learn how to manage the columns in active sites
dashboard. By default, Site name, URL, Storage used etc. these columns will
be displayed, however, we can show more columns or remove from the
view.
• All Sites
• Office 365 Group Sites
• Sites without a group
• Largest sites
Page 109
• Least active sites
• Most popular sites
Click on the Active sites -> Then, click on the view menu as highlighted
below.
Page 110
Select the columns as per the need and click on the Apply button.
Notes:
Page 111
• In both places, SharePoint document library/list and active sites view –
we can show or hide the columns based on the requirement.
Using Bulk edit we can manage Sharing and hub sites’ association for
multiple sites at one time. For this we need to follow the below. As
mentioned go to Active Sites -> select multiple sites as per your need ->
Click on three dots(…) button -> click on “Bulk edit” dropdown list -> Go for
Sharing or Hub Association as per your need. For hub association you may
refer to the overview of the Hub Sites Jump article.
Page 112
Deleted Sites
If we delete any site from SharePoint online – it will be deleted from the end
user, but it will be retained in the Recycle Bin for 93 days. For details please
refer to the manage recycle bin chapter.
Using the deleted sites report – we can view all deleted sites from the tenant
in a single place and we can even delete them permanently.
Click on the “Deleted sites” link as mentioned below then we’ll get all the
deleted sites. Using this report we can restore the deleted sites or can
permanently delete the sites, and also unlike active sites we can search all
deleted sites from the search sites box.
Notes:
● After deleting the site, the deleted site will be retained in this location
for 93 days.
● Deleted Office 365 groups are retained for only 30 days, so we cannot
delete the office 365 group connected site permanently for 30 days.
Because this deleted site is an office 365 group connected one, the
“Permanently delete” site button is disabled.
● If you delete the root site for your organization, all your SharePoint
sites will be inaccessible until you restore the site or create a new root
site.
Page 113
To permanently delete sites (including Office 365 group-connected team
sites) use the below PowerShell command:
Remove-SPODeletedSite -Identity
“https://contoso.sharepoint.com/sites/sitetoremove”
● Sharing and
● Access Control
Page 114
Sharing – SharePoint admin center:
● External Sharing
● Other Settings
Page 115
Access Control – SharePoint admin center:
Use these settings to restrict how users can access the content in SharePoint
and OneDrive. To manage the access control, navigate to Policies -> Access
Control
Page 116
We can do the following settings activities with respect to “Access Control”
● Apps that don’t use modern authentication: Block access from Office
2010 and other apps that can’t enforce device-based restrictions.
Page 117
Unmanaged
Devices
Page 118
Idle Session
Sign-out
Network
Location
Apps that
don’t use
modern
authentication
Page 119
Centrally settings in SharePoint admin center:
Using this we can control which features are available to your users.
Navigate to this by clicking on “Settings” button as mentioned below:
● Notifications: Lets users get device notifications about file activity and
news
Page 120
● Default admin experience: Open the new or classic SharePoint admin
center by default
Page 121
Notes:
● Default admin experience: The new SharePoint admin center lets you
manage modern sites and new features like hub sites. You can access
Page 122
all SharePoint administration features from the new admin center.
Using this flag, we can set whether you need to open the modern
admin center or classic admin center (old) by default.
● Notifications: When this setting is on, and users turn on notifications in
Office mobile apps, they'll receive notifications about SharePoint
content. Based on this setting being disabled or enabled we can get a
notification from Microsoft.
● Site storage limits: Easily share storage among all sites, or control
storage limits by site. The site storage limits can be set as automatic
or manual. In the automatic setting, the storage will be managed
automatically whereas in the manual setting we can set the specific
limit.
Page 123
The above settings can also be managed from the below page directly:
Syntax:
https://tenant-
admin.sharepoint.com/_layouts/15/online/TenantSettings.aspx
Example:
https://globalsharepoint2019-
admin.sharepoint.com/_layouts/15/online/TenantSettings.aspx
Page 124
Consolidated global setting in the Tenant setting page:
● Personal Blogs
● Site Pages
● Site Creation
● Subsite Creation
● Custom Script
● Preview Features
● Connected Services
Page 125
Show or Hide App Tiles
This configuration is used to show or hide app tiles in the app launcher and
on the Office 365 portal.
Using this option, we can set either a classic or modern experience for users.
Page 126
The new experience gives people improved performance, additional phone
and tablet features, and a simplified UI. If you select the new experience,
users can still switch to the classic experience if they want. Select the classic
experience if you’re not ready for your users to switch to the new
experience.
Use this setting to switch between simple or advanced admin center user
experiences. The simple experience displays only the essential options. The
advanced experience shows everything.
Page 127
This setting is a switch to enable Delve and related features, or disable it.
Delve helps users discover relevant content based on who they work with
and what they're working on. By default, users in your organization can
access Delve (and related features within other apps). If you disable Delve,
users will no longer see:
● The "Discover" list in OneDrive, in the Outlook mobile app, and on the
Microsoft Office Home page
“This setting talks about whether to use Yammer or SharePoint News Feed,
which is a default setting, when it comes to enterprise social collaboration.
Page 128
Make Yammer the primary social experience for everyone in your
organization. Switching services will replace Newsfeed and change the Office
365 global navigation. This update might take up to 30 minutes for us to
complete.
Yammer is not a covered service under the O365 Trust Center currently.
Please review Yammer's privacy statement. Enabling this feature will allow
Yammer to have read and copy access to your company's user and group
information.”
This setting is used to control whether videos are stored and streamed from
Azure Media Services, the default setting is disabled.
● Enable streaming video through Azure Media Services and enable the
Video Portal.
● Disable streaming video through Azure Media Services and disable the
Video Portal.
Page 129
Personal Blogs
Site Pages
Let your users create responsive Site Pages using the Authoring Canvas.
Page 130
●
This is used to control which version of site collections can be created by end
users, and whether users can upgrade them. We can have any of the below
configurations. The default setting is preventing the creation of old version
site collections.
Page 131
Information Rights Management (IRM)
It is a flag for whether to use IRM service or not in the tenant, the default
setting is to not use it.
Note:
Page 132
Introduction to IRM:
Page 133
Information Rights Management (IRM) in tenant settings page:
https://globalsharepoint2020-
admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/settings
Click on the “Settings” link from the left side panel, then click on the “Classic
settings page” link from the bottom of the settings page as below.
Page 134
This will take us to the below tenant settings page.
Page 135
Scroll down to the middle of the above page. Then, we can see the
“Information Rights Management (IRM) section. There, we can see the below
two options:
Page 136
● Use the IRM service specified in your configuration
Select the “Use the IRM service specified in your configuration” radio button. By
default, “Do not use IRM for this tenant” will be selected. Finally, click on the
“Refresh IRM Settings” button.
Note:
● Once you click on the IRM Settings button, this will enable IRM service to
document libraries in the tenant.
Page 137
IRM settings in Document library:
Now, let’s navigate to the same document library settings page that we have seen
in the previous step.
We can see the link of “Information Rights Management” under the “Permissions
and Management” section which was not available just sometimes back.
Once we click on the “Information Rights Management” link, this will take us
to the below “Information Rights Management Settings” page.
Page 138
Click on the “SHOW OPTIONS” link to see the see configuration which has
mainly three sections:
Page 139
I will elaborate on the above configuration one by one.
Page 140
Set additional IRM library settings
The additional IRM library settings section provides additional settings that
control the library behavior.
● Stop restricting access to the library at the specific date: Using this
option we can stop restricting access to the library on the given date.
Page 141
● Allow viewers to print: If we enable this checkbox, the user can take
the printout of the document.
● After download, document access rights will expire after these number
of days (1-365): Using this option we can set the document access
rights expiry day – meaning, after how many days the document
access rights management will expire after downloading the document.
It could be any day from 1 to 365. Example – 90 days.
Set group protection, and credentials interval section controls the caching
policy of the license the application that opens the document we will use and
allows sharing the downloaded document with users that belong to a
specified group.
Page 142
● Users must verify their credentials using this interval (days): If this
option is configured, users must verify their credentials at the interval
of the configured days. Example: 30, in every 30 days users must
verify their credentials.
Page 143
● Set expiration date – the date after which the document cannot be
used after downloading.
● Control whether Office Web Apps can render the documents in the
browser from the library.
● Set group protection and credentials intervals which allow you to share
only specific groups.
Permissions in IRM:
Page 144
print only if the Allow users to
print documents checkbox is
selected on the Information Rights
Management Settings page for the
library.
Site Creation
This is one of the important settings of the global setting section. This
setting is used for deciding whether to hide or show create site command for
the end user, the default setting is show.
Display the Create site command on the SharePoint home page and in the
sites list in OneDrive so users can create new sites.
The first option lets users create an Office 365 group-connected team site or
a communication site. Users who don't have permission to create Office 365
groups can still create new team sites without the Office 365 group.
Page 145
The second option lets users create a classic team subsite. Using this setting
we can enable whether to allow user to
For both options, you can let users create sites from a custom form by
entering the form URL. If you selected the first option, users could access
the form by clicking "See other options" when they're creating the site.
When a team or communication site is selected, we can decide how the site
manage path should be, either “/sites/” or “/teams/”, and whether
secondary contact is required or not during site creation.
Page 146
● We can set our own managed path
Subsite Creation:
It controls whether site owners (and others who have permission to create
sites) can create subsites. This controls whether the Subsite command
appears on the New menu on the Site contents page. Below settings are
available – it can be set to any of them.
Page 147
We recommend using hub sites to connect related sites instead of creating
subsites.
The default setting is “Show the Subsite command for all sites”
Custom Script
Control whether users can run custom script on personal sites and self-
service created sites.
Page 148
● Prevent users from running custom script on personal sites
Note:
Preview Features
Turning off this setting will disable Preview features making them
inaccessible to your users. Preview features have limited support in
SharePoint Online and do not yet meet all service requirements. A full list of
the Preview features and support details can be found at the O365 website.
Page 149
Connected Services
This feature allows users to get mobile push notifications for changes to their
ODB content.
● Allow notifications
Page 150
Mobile Push Notifications – SharePoint
This feature allows users to get mobile push notifications for changes to their
SharePoint content.
● Allow notifications
Enabling this feature adds a comment section to all site pages. Users who
have access to the pages can leave comments.
Page 151
Page 152
Page 153
How to navigate to classic features from modern admin center?
● Term store: Create and manage term sets to help users enter data
consistently.
Page 154
● User profiles: Add and remove admins for a user’s OneDrive, disable
OneDrive creation for some users, and more.
● Secure store: Create and set the credentials for Target Applications
used for BCS connections.
Page 155
Term Store
User Profiles
Page 156
Search
Apps
Page 157
BCS
Secure
Store
Records
Management
Page 158
InfoPath
Hybrid
Picker
Notes:
● Hybrid Picker: Using Hybrid picker tool we can configure the search,
Manage Metadata group, content type etc. in hybrid mode. Example:
We can search the on-premise content from SharePoint online search
center.
Page 159
How do we navigate to the classic/old site collection create page?
Once we click on the “Open” button, we’ll land into the classic site collection
creation page but one thing we can notice that the left side panel is empty –
this is in the modern SharePoint administration, earlier in classic
administration page we had all the above mentioned Term store, User
profiles, Search, Apps, BCS, etc.
Page 160
Data migration tool in SharePoint admin center:
This is a Microsoft data migration tool, using this we can migrate the data to
SharePoint sites. This is a free migration tool provided by Microsoft. We can
learn more about the data migration tool and download it from the below
URL:
https://docs.microsoft.com/en-us/sharepointmigration/introducing-the-
sharepoint-migration-tool
Page 161
Manage script editor webpart in SharePoint Online
Having said this, it does not mean that we cannot add script editor web part
in SharePoint online page, we still can. Now, we will see how we can enable
this option.
The background of when I realized this issue is – one day one of my friends
called me and discussed that he is not finding the script editor web part in
SharePoint online site. After some analysis we learned that in SharePoint
online site, script editor web part is not available by default. In order to
make it available we need to enable the custom script from SharePoint
Tenant admin center. Now, we will learn how to enable this.
So, what we are saying is that script editor web part is not available by
default – let’s justify this practically.
Navigate to the edit your web part page – > Insert -> Web Part ->
Categories ->Media and Content
Page 162
Here we can see that “Script Editor” web part is missing. Not only that, but
we cannot see the “Content Editor” web part and many more. Please see
the below screenshot, this is because of by default adding custom script in
the page is disabled.
Now, we will enable the custom scripting and see whether we can see the
script editor web part back to the page.
https://sprnd-
admin.sharepoint.com/_layouts/15/online/TenantSettings.aspx
Page 163
Note: Here “sprnd” is my tenant name, you need to pass your tenant name.
Now see the “Custom Script” section by default both the radio button is
selected as prevent – this is the default behavior and due to this script editor
and content editor web part is missing from SharePoint online page.
Now select to allow users to run custom script for both the radio button as
below:
To overcome this issue run the below PowerShell script – this will
immediately add the script editor and content editor web part in the web
part category. This exploration is from my personal experience.
Page 165
Set-SPOsite “https://sprnd.sharepoint.com/sites/TestSite001″ -
DenyAddAndCustomizePages 0
Notes:
● In Set-SPOsite pass the site URL where you want to add the script
editor web part.
Verify that script editor web part is available after executing the PowerShell
Script:
After executing the above script – immediately we come to the same page –
now we can see the script editor, content editor and many other web parts
that were not there before the script execution under “Categories”:
Page 166
Why does Microsoft not allow us to add the script editor web part by default?
Considering the utmost security – Microsoft does not recommend adding the
custom script into the page. If we want to add any custom scripting into our
SharePoint online page – we need to add these out through the SPFx
framework.
If we skip the custom script enable setting and execute the above
PowerShell command – will the script editor be available in the page?
Until a few days back I had the understanding that if we skip the custom
script enable setting from admin center and just directly execute the above
PowerShell command it will bring script editor immediately to the page,
however, this is not true from my experiment – we must first enable the
custom scripting from the admin center then we need to execute the above
Page 167
PowerShell script, in order to bring the script editor stuff to be available in
the page.
Page 168
Chapter 8: Manage hub sites in SharePoint Online from admin center
These days hub sites, modern sites, and megamenu are buzzwords in the
modern SharePoint world and hub sites are at the heart of all these – rather
I would say hub site is a subset of SharePoint site administration or mini
modern admin center with respect to site administration.
In simple words, we can say that the Hub Site is a collection of sites
connected to a master site from where all connected sites can be navigated
and managed. It has the following key attributes.
Example – let’s say you are a project manager and managing multiple
projects in SharePoint, .NET, and Java etc. And for these different types of
projects, you have different site collections. Now, we want to maintain the
Page 169
same look and feel for all the project sites and want to navigate through
from one project site to another project site seamlessly and want to share
the common news across all departments/project sites. Here, Hub Site is a
way to go. We need to connect these site collections to a Hub site. In the
coming section, we’ll see how a site can be connected to a Hub Site.
Image Source:
https://docs.microsoft.com/en-
us/sharepoint/sharepointonline/media/e1ac50b4-076b-4a3b-bc9e-
cebcc2f0b20d.gif
For our above project sites scenario – if we want to achieve the same, we
need to have a root site called Projects and under this, various subsites
(SharePoint, .NET, Java etc.) which will form the nested architecture and this
Page 170
will lead to a bad user adoption experience when it comes to navigation. One
other really big challenge – let’s say we have 10 subsites and out of 10, in
one subsite, we need to activate a feature (let’s consider a publishing
feature) which has a dependency with a site collection level feature, so first,
we need to activate in the site collection level even though it’s irrelevant for
the other 9 subsites. As a result, for a site administrator, it is very difficult to
manage. So, Microsoft has recommended using flat architecture, i.e., no
subsites. We should adapt to create a new site collection for each
requirement. Whether we like it or not, we are bound to adopt this fashion –
let’s say we have created an Office 365 group and immediately if we come to
active sites pages in the modern admin center, we can see one modern new
site has been created automatically with the Office 365 group name.
Note:
● Having said this, it does not mean that we cannot create a subsite –
still, we can, but Microsoft does not recommend it.
Any active site can be designated as a Hub Site through the modern
SharePoint Office 365 admin center or PnP command. Go to the modern
SharePoint admin page and under site, click on Active Sites.
Page 171
Now, we can see all available active sites out here – now planning to make
“TestSite001” as a Hub Site. To do this, let’s follow the below steps.
This will take some time to complete all the required settings.
Page 172
Now, a site has been configured as a “Hub Site”.
Note
Adding a site to a Hub Site is like adding a brother and sister to an elder
brother (i.e. Hub Site). Now, we’ll see how a new and existing site can be
Page 173
connected to a Hub Site. This is the homepage of the newly created Hub
Site.
Click on +Create site button, then give the site name; For example,
“TestTeamSite_Brother” (we can give any name). Then, click the “Save”
button.
Page 174
Now, we can see the wonder – come to the SharePoint modern admin
homepage and go to the Active Sites screen. We can see the newly created
Team site listed out here which is connected to the Hub – Project “Hub Site”.
Another way is, we can connect any existing site to a hub site. Let’s do that
– select the particular existing site, radio button and from the Hub menu,
click on “Associate with a Hub” link.
Select the Hub Site from the dropdown list and click on the Save button.
This will take some time to do the all required configuration.
Page 175
Some key features or use cases of Hub Sites.
● Shared navigation
● News roll-up
● Associated sites
● Highlighted content
● Events
Connect-PnPOnline -SPOManagementShell
New-PnPSite -Type TeamSite
-title "Contoso marketing division"
-alias "marketing"
Page 176
-Description "Main site for collaboration for marketing teams at Contoso"
Grant-SPOHubSiteRights -Identity
https://contoso.sharepoint.com/sites/marketing -Principals
"nestorw@contoso" -Rights Join
Using the below PnP PowerShell, we can add or register multiple sites to a
hub site by importing the sites CSV file.
Many times, SharePoint Online administrator needs to export all hub sites
along with all associated sites from tenants.
So, in this section, we will learn about how to retrieve hub sites and
associated sites using PnP PowerShell and Office 365 admin center URL.
Page 177
First, we will see how we can export hub site reports using PnP PowerShell,
then we will see the traditional way; i.e., from office 365 admin center UI we
can export hub site reports.
Using the below PnP PowerShell, we will generate the following reports:
● Get master report for all sites and their hub sites from the SharePoint
online tenant.
CLS
$userName = "Global-
[email protected]"
$passWord = "YourPassWord"
$encPassWord = convertto-securestring -String $passWord -AsPlainText -
Force
$cred = new-object -typename
System.Management.Automation.PSCredential -argumentlist $userName,
$encPassWord
#Getting the hub site id for which we want to generate the report - those
are connected to this hub site.
$hubSiteURL="https://globalsharepoint2019.sharepoint.com/sites/SPHubSit
e"
$hubSite = Get-PnPTenantSite $hubSiteURL
$hubSiteId = $hubSite.HubSiteId
Page 178
write-host " #####Generating sites connected a single hub site
report######: " -BackgroundColor DarkGreen
write-host "Hub Site URL: " $hubSiteURL
$associatedSites = @()
#Get all sites associated to the hub site(in the above hub site)
$sitesTenant = Get-PnPTenantSite -Detailed
$sitesTenant | select url | % {$oneSite = Get-PnPTenantSite $_.url
}
}
Page 179
######The below script will list down all hub sites and their associated
connected sites in the tenant.##################
write-host "------------------------------------------------------------------------
------------------------------"
write-host " #####Generating master hub sites along with connected sites
report for the tenant. ######:" -BackgroundColor DarkGreen
$hubSites=Get-PnPHubSite
$associatedSites = @()
foreach($oneHubSite in $hubSites)
{
$test=$oneHubSite;
write-host "Hub Site URL: " $oneHubSite.SiteUrl
#Get all sites associated to the hub site(in the above hub site)
$sitesTenant = Get-PnPTenantSite -Detailed
$sitesTenant | select url | % {$oneSite = Get-PnPTenantSite $_.url
Page 180
#Add the object with property to an Array
$associatedSites += $assocatedSiteObject
}
}
}
#Export the site array collection to a CSV file
$associatedSites | Export-CSV
"C:\Temp\GetAllSitesAssociatedInHubSites\SitesConnectedToHubSiteReprotF
orTenant.csv" -NoTypeInformation
write-host "##### Generating master hub sites along with connected sites
report for the tenant ends here ######:" -BackgroundColor DarkYellow
######The below script will list down all hub sites and their associated
connected sites in the tenant - ends here##################
PnP PowerShell script to get all sites connected to hub site: Test
Using the above script, we can generate the report like what sites are
connected to a particular hub site – meaning, sometimes the SharePoint
online administrator needs to get the details about all associated sites for
the given hub site, in this case the above script will help us. For example, if
we want to know about which are the sites connected or associated to the
below hub site, we can get to know it using the above script.
https://globalsharepoint2019.sharepoint.com/sites/SPHubSite"
Page 181
Another scenario is, many times the SharePoint online administrator needs
to get the details of associated sites that are connected to hub sites –
meaning, from tenant level we need to get the detail about all hub sites and
their connected or associated sites – then the above script will help us.
To be more concise, in a tenant there will be many hub sites and normal
sites – as a rule of thumb of hub site architecture, normal sites will be
connected to the hub sites, so – if we want to get the details about the hub
site and associated site relationship table, we can use this script.
Let’s see the exported hub sites report – how does it look like?
Master report for all hub sites in the SharePoint online tenant:
Page 182
All associated sites connected to a single hub site report.
View all sites that are connected to a hub site using SharePoint admin center
URL (UI):
We need to generate a view to list down the hub site report using the hub
site association.
Syntax: https://tenant-admin.sharepoint.com
Example: https://globalsharepoint2019-admin.sharepoint.com/
Page 183
If we navigate to SharePoint online admin center URL, we will get the below
SharePoint admin center page. Then we need to click on the “Active Sites”
link from the left-side panel.
Then from the “Active sites” dashboard click on “Hub” -> Filter by Hub ->
then select your hub site – this will list down all sites that are connected to
that particular hub site.
Page 184
Now – we can see all sites that are connected to the hub site “SP Hub Site”
Page 185
Similarly, we can export this report in a csv file, and we can filter that site
report file from the local excel to have a list of all the sites that are part of
the same Hub.
From the “Active sites” dashboard click on the “Export” button. This will
export all SharePoint online sites in a csv file to your local download folder.
We will get the active sites report as below – from there we can filter as per
our need.
Page 186
Page 187
Chapter 9: Workflow Report from SharePoint Online tenant
Many times, SharePoint online administrators will have a need to extract all
workflows from all the sites in tenant. It is very difficult to get those reports
manually.
So, using the below PowerShell CSOM and PnP script we can get the
workflow report from the SharePoint Online tenant.
This script will scan through all the sites in a tenant and will export all
workflows associated with the lists into a CSV file.
Export all workflows from SharePoint Online Tenant using PowerShell CSOM:
Using the below PowerShell CSOM code, we can export or get all workflows
from the SharePoint Online tenant:
Import-Module Microsoft.Online.SharePoint.PowerShell -
DisableNameChecking
#Load SharePoint CSOM Assemblies
#Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web
Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll"
#Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web
Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
cls
$fileName = "Tenant_workflow_Report" #'yyyyMMddhhmm yyyyMMdd
$enddate = (Get-Date).tostring("yyyyMMddhhmmss")
#$filename = $enddate + '_VMReport.doc'
$logFileName = $fileName +"_"+ $enddate+"_Log.txt"
$invocation = (Get-Variable MyInvocation).Value
$directoryPath = Split-Path $invocation.MyCommand.Path
Page 188
$directoryPathForLog=$directoryPath+"\"+"LogFiles"
if(!(Test-Path -path $directoryPathForLog))
{
New-Item -ItemType directory -Path $directoryPathForLog
#Write-Host "Please Provide Proper Log Path" -ForegroundColor Red
}
#DLL location
$directoryPathForDLL=$directoryPath+"\"+"Dependency Files"
if(!(Test-Path -path $directoryPathForDLL))
{
New-Item -ItemType directory -Path $directoryPathForDLL
#Write-Host "Please Provide Proper Log Path" -ForegroundColor Red
}
#DLL location
$clientDLL=$directoryPathForDLL+"\"+"Microsoft.SharePoint.Client.dll"
$clientDLLRuntime=$directoryPathForDLL+"\"+"Microsoft.SharePoint.Client.
dll"
$directoryPathForFileDownloadLocation=$directoryPath+"\"+"Download
Workflow Details"
if(!(Test-Path -path $directoryPathForFileDownloadLocation))
{
Page 189
New-Item -ItemType directory -Path
$directoryPathForFileDownloadLocation
#Write-Host "Please Provide Proper Log Path" -ForegroundColor Red
}
function Write-Log([string]$logMsg)
{
if(!$isLogFileCreated){
Write-Host "Creating Log File..."
if(!(Test-Path -path $directoryPath))
{
Write-Host "Please Provide Proper Log Path" -ForegroundColor Red
}
else
{
$script:isLogFileCreated = $True
Write-Host "Log File ($logFileName) Created..."
[string]$logMessage = [System.String]::Format("[$(Get-Date)] -
{0}", $logMsg)
Add-Content -Path $logPath -Value $logMessage
}
}
else
{
[string]$logMessage = [System.String]::Format("[$(Get-Date)] -
{0}", $logMsg)
Add-Content -Path $logPath -Value $logMessage
}
}
$WorkflowDetailsForSPOSite=@()
#The below function will read all workflows from a site and return the array
output.
Page 190
Function Get-WorkflowAssociationsDeatilsForEachSiteInTenant()
{
param
(
[Parameter(Mandatory=$true)] [string] $SPOSiteURL,
[Parameter(Mandatory=$true)] [string] $UserName,
[Parameter(Mandatory=$true)] [string] $Password
)
Try
{
$securePassword= $Password | ConvertTo-SecureString -AsPlainText -
Force
#Setup the Context
$context = New-Object
Microsoft.SharePoint.Client.ClientContext($SPOSiteURL)
$context.Credentials = New-Object
Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName,
$securePassword)
$web = $context.Web
$context.Load($web)
$context.Load($web.Webs)
$context.executeQuery()
if ($web.Webs.Count -ne 0)
{
foreach ($subweb in $web.Webs)
{
Get-WorkflowAssociationsDeatilsForEachSiteInTenant -
SPOSiteURL $subweb.url -UserName $userName -Password $password
}
}
Page 191
$context.ExecuteQuery()
foreach($list in $web.Lists)
{
$context.Load($list.WorkflowAssociations)
$context.ExecuteQuery()
foreach($wfAssociation in $list.WorkflowAssociations)
{
if($wfAssociation.name -notlike "*Previous Version*")
{
$row=new-object PSObject
add-Member -inputObject $row -memberType NoteProperty -
name "Site Title" -Value $web.Title
add-Member -inputObject $row -memberType NoteProperty -
name "Site URL" -Value $web.Url
add-Member -inputObject $row -memberType NoteProperty -
name "List Title" -Value $list.Title
add-Member -inputObject $row -memberType NoteProperty -
name "Workflow Name" -Value $wfAssociation.Name
add-Member -inputObject $row -memberType NoteProperty -
name "Workflow Type" -Value "SharePoint List"
$WorkflowDetailsForSPOSite+=$row
}
}
}
return $WorkflowDetailsForSPOSite
}
catch
{
write-host "Error: $($_.Exception.Message)" -foregroundcolor Red
$ErrorMessage = $_.Exception.Message +"in exporting workflow
details!:"
Write-Host $ErrorMessage -BackgroundColor Red
Write-Log $ErrorMessage
Page 192
#Parameters
#$siteURL="https://globalsharepoint2019.sharepoint.com/sites/ModernTea
mSiteTestByPnP"
$adminUrl = "https://globalsharepoint2019-admin.sharepoint.com/"
$downloadLocation=$directoryPathForFileDownloadLocation +"\"+
"SPOTenantWorkflowReport.csv"
$userName = "YourSPOUserName"
$password = "YourSPOPassWord"
$securePassword= $password | ConvertTo-SecureString -AsPlainText -Force
#Import-Module Microsoft.Online.SharePoint.PowerShell -
DisableNameChecking
#Retrieve all site collection infos
#Connect-SPOService -Url $AdminUrl -Credential $Credentials
#$sites = Get-SPOSite
$allTenantSites=Get-PnPTenantSite
#Get-WorkflowAssociationsDeatilsForEachSiteInTenant -SPOSiteURL
$siteURL -UserName $userName -Password $password | Export-Csv
$downloadLocation
if($allTenantSites.Count -gt 0)
{
Page 193
Get-WorkflowAssociationsDeatilsForEachSiteInTenant -SPOSiteURL
$oneSite.URL -UserName $userName -Password $password
}
$finalWorkflowReport | Export-Csv $downloadLocation -NoTypeInformation
● Similarly, in order to get all sites from the tenant, we can use the
“Get-SPOSite” command as well. However, if you have .net
framework mismatch version installed in your PowerShell – this
command will not work, we will get an error like “Connect-SPOService
: Method not found: ‘!!0[] System.Array.Empty()‘”
Page 194
● If we use the above code as is this will export all workflows from the
tenant. However, if we want to export all workflows from a particular
site, we can comment the foreach loop and just need to call the
function” Get-WorkflowAssociationsDeatilsForEachSiteInTenant”
as below:
After the successful execution of the script, a CSV file with the name of
“SPOTenantWorkflowReport.csv” will be created in the script location
Page 195
directory – however, you can change the download location to your desired
location.
Now, let’s look at all workflows exported from the CSV report.
Page 196
We can see in the CSV report, all workflows from the SharePoint Online
tenant have been exported.
We need to place the below two DLLs in your script directory “Dependency
Files” folder as like below:
(New-Object
Net.WebClient).DownloadString('https://raw.githubusercontent.com/sharepo
int/PnP-PowerShell/master/Samples/Modules.Install/Install-
SharePointPnPPowerShell.ps1')
Page 197
Change the value of the variables in the parameters section like
below:
#Parameters
#$siteURL="https://globalsharepoint2019.sharepoint.com/sites/ModernTea
mSiteTestByPnP"
$adminUrl = "Your SPO Admin URL Like - https://globalsharepoint2019-
admin.sharepoint.com/"
$downloadLocation=$directoryPathForFileDownloadLocation +"\"+
"SPOTenantWorkflowReport.csv"
$userName = "YourSPOUserName"
$password = "YourSPOPassWord"
$securePassword= $password | ConvertTo-SecureString -AsPlainText -Force
#Parameters ends here.
Page 198
Chapter 10: Site creation template selection in SharePoint Online
Introduction
Having had these many templates in the classic SharePoint, during the days
of Classic SharePoint, users blindly used to create team sites according to
whatever the requirement is – and using that team site users used to
manage all their requirements. Here is one thing I must say – even though
we have multiple templates in classic SharePoint – if we just choose the
team site and create a site using that still we can bring in all other site
functionality by enabling the certain features. The advantage of creating the
requirement-based site using the specific site template – the site will be
loaded or created with the many preconfigured stuffs.
And when it comes modern SharePoint online, we just have only two
templates:
2. Communication Site
So, it is very important to know what these two templates are, otherwise
when a user or administrator creates a site, it will be very confusing for
them which template to select.
Here, we will learn about team and communication sites and when to use
which one.
Microsoft has integrated SharePoint Team Sites with Office 365 Groups in
August 2016. This modern team site with pages, lists, libraries, and team
Page 199
news, with the help of Office 365 groups can collaborate, communicate and
coordinate with each other.
Other than the Team Site and Communication Site template recently in the
February 2020 release, Microsoft has provided a way to create other types
(without office 365 group connected) of sites as well from the same site
creation screen.
Page 200
If we click on the team site template, under that we can see “Other options”
– once we click on this this it takes us to the below page:
● Team Site
● Document Center
● Enterprise Wiki
● Publishing Portal
● More Templates
Page 201
Again, if we click on the “More Templates” link – it will take us to the classic
“Create Site Collection” page.
https://globalsharepoint2020-
admin.sharepoint.com/_layouts/15/online/CreateSiteFull.aspx?source=Tena
ntAdmin
Notes:
Page 202
● Using this new navigation (“Other options” template selection), users
can create office 365 group that is connected or not connected from
the same screen.
● News
● Quick Links
● Activity
● Documents
Page 203
● News
● Events
● Documents
2. Communication Site
For example, if we want to market any product for the sales team, we can
go with the communication site; in fact, we can also design the company’s
main website using the communication site template. Because in this kind of
site, we don’t need a frequent update, once in a while, some dedicated
people will update the contents of the site. The bottom line is we can think
of communication sites as public-facing sites and that is the reason we don’t
see quick launch navigation as it needs more content area to display.
On the other hand, the team site is used for the team where a group of
people will contribute to the site, but the audiences of the sites are less as
compared to communication site – mainly it is used for the internal team of
Page 204
the company where multiple people collaboratively work with each other but
are exposed only to a set of people. Actually, the meaning of collaboration
in SharePoint comes to fruition through the team site.
Here, we will learn about how to create a modern team site in SharePoint
online manually.
Syntax:
“https://yourtenant.sharepoint.com/”
Example:
“https://globalsharepoint2019.sharepoint.com/”
Click on the app launcher button from the left panel, then click on
“SharePoint”.
Page 205
Then, we’ll land on this page –
“https://globalsharepoint2019.sharepoint.com/_layouts/15/sharepoint.aspx”
Page 206
Then, we’ll be presented with two templates:
● Team site
● Communication site
Page 207
Enter the below:
Page 208
We’ll be landing to the below page with the below two boxes:
Page 209
Page 210
Finally, we can see that a new modern team site has been created as the
below landing page with so many out of the box webparts.
Page 211
Prerequisites – Install PnP PowerShell in SharePoint online
Using the ‘New-PnPSite’ command we can create a modern team site and
communication site in SharePoint online. The New-PnPSite cmdlet creates a
new site collection for the current tenant. Currently, only ‘modern’ sites like
Page 212
Communication Site and the Modern Team Sites are supported. If you want
to create a classic site, use New-PnPTenantSite.
Using the below PnP PowerShell script, we can create a modern team site in
SharePoint online.
############################Description############
##############################################
#The below script will create a modern team and communication site in
SharePoint online using PnP
###############################################
###############################################
###
CLS
$userName = "Global-
[email protected]"
$passWord = "YourSPOOnlinePassword"
$encPassWord = convertto-securestring -String $passWord -AsPlainText -
Force
$cred = new-object -typename
System.Management.Automation.PSCredential -argumentlist $userName,
$encPassWord
Connect-PnPOnline -Url "https://globalsharepoint2019-
admin.sharepoint.com/" -Credentials $cred
Page 213
After executing the above modern team site creation using the PnP script, if
we navigate to the
https://globalsharepoint2019.sharepoint.com/sites/ModernSiteByPnP which
was created through the PnP script, we can see the below modern
SharePoint online site.
This will create a new Modern Team Site collection with the title ‘Team
Contoso’ and the URL ‘https://tenant.sharepoint.com/sites/contoso; or
‘https://tenant.sharepoint.com/teams/contoso’ based on the
managed path configuration in the SharePoint Online Admin portal and sets
the site to public.
New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso -Lcid 1040
Page 214
This will create a new Modern Team Site collection with the title ‘Team
Contoso’ and the url ‘https://tenant.sharepoint.com/sites/contoso’; or
‘https://tenant.sharepoint.com/teams/contoso’ based on the
managed path configuration in the SharePoint Online Admin portal and sets
the default language of the site to Italian.
Page 215
In the next screen provide the “Site name” and “Site description (optional)”,
then click on the “Finish” button.
In the next screen, we can see that a new communication site has just been
created.
Page 216
Create a communication site in SharePoint online, using PnP PowerShell:
Script execution
Using the below PnP PowerShell script, we can create a communication site
in SharePoint online.
Page 217
Create a communication site in SharePoint online – PnP PowerShell:
● Topic
● Showcase
● Blank
Page 218
Using the below PnP PowerShell script, we can create a communication site
in SharePoint online.
############################Description############
##############################################
#The below script will create a modern team and communication site in
SharePoint online using PnP
###############################################
###############################################
###
CLS
$userName = "Global-
[email protected]"
$passWord = "YourSPOPassword"
$encPassWord = convertto-securestring -String $passWord -AsPlainText -
Force
Page 219
$cred = new-object -typename
System.Management.Automation.PSCredential -argumentlist $userName,
$encPassWord
Connect-PnPOnline -Url "https://globalsharepoint2019-
admin.sharepoint.com/" -Credentials $cred
Notes:
Page 220
This will create a new Communications Site collection with the title ‘Contoso’
and the URL ‘https://tenant.sharepoint.com/sites/contoso’. It will
use the specified custom site design for the site.
This will create a new Communications Site collection with the title ‘Contoso’
and the url ‘https://tenant.sharepoint.com/sites/contoso’. The
classification for the site will be set to “HBI”
This will create a new Communications Site collection with the title ‘Contoso’
and the url ‘https://tenant.sharepoint.com/sites/contoso’. Allows
owners to invite users outside of the organization.
This will create a new Communications Site collection with the title ‘Contoso’
and the url ‘https://tenant.sharepoint.com/sites/contoso’ and sets
the default language to Italian.
Page 221
Chapter 11: Navigation in SharePoint Online
Introduction to navigation
Building proper navigation to a site attracts more users, as they like the new
navigation. The main purpose of navigation is to allow the users to land on
their intended page in a quick manner and they should be able to navigate
through to wherever they want. And at any given point, the user should be
able to go back to the home page of the site. So, while SharePoint architects
design the navigation, they must adhere to the rules of navigation and know
the end user's current way of navigating before introducing a new one.
While we talk about Hub Site navigation, we must know about other types of
navigation as well. The types of navigation in SharePoint Online are as
below.
● Megamenu Navigation
● Personal Navigation
Now, we’ll talk about each type of navigation with a proper example.
Page 222
Site Navigation (Local Navigation)
Page 223
Note
● The communication site does not have top navigation. Instead, Quick
Launch has been moved from the left to the top.
Let's say we have ten subsites and we want common navigation to all the
subsites – then global navigation is the right choice. The navigation should
be configured in the top-level root site collection and this navigation should
be inherited from all sub sites below it.
Page 224
Note
● The Site Collection Navigation option only exists on sites not connected
to Office 365 Groups (classic sites or modern team sites without a
Group).
In modern site architecture, we will never have all the stuff in a single site
collection. Sometimes, we may have a department site such as a
communication and team site connected with an office 365 group. Those are
independent site collections, in this case, global navigation will fail. This is
where the hub site comes into the picture. Hub sites allow us to combine all
those different types of sites and site collections and bring them all under
one umbrella.
Here is an example of hub site navigation, note here the link Sales and IT
are from different site collections (classic team site).
Page 225
Megamenu Navigation
Example of megamenu:
This is a white rectangular box menu – using this we can implement multi-
level nested item navigation, but in flat architecture. At any given point of
Page 226
time users will not lose their content. While working on megamenu we must
know this – if we configure the mega menu in the hub sites, this will not be
inherited automatically in the subsequent associated site, we need to
configure these in associated sites as well.
Note
● We can achieve all four (Quick Launch, Global, Hub Site and
Megamenu) on the same site if we use a team site not connected to an
Office 365 Group. The site which is connected to an Office 365 Group
loses site collection (Top) navigation option.
Personal Navigation
All the above types of navigations are man made – I mean these need to be
manually configured. Apart from these, we have one more navigation we
may name as personal navigation – these are not manually configured,
based on the sites we may visit frequently these will be listed out over here.
Page 227
Go to the below URL and click on “SharePoint”.
Page 228
Page 229
Summary
I hope you have enjoyed reading this book. The purpose of this book is how
a SharePoint administrator, Power User, architect and developer (with the
appropriate access) can manage the SharePoint Online admin center from
Office 365. This book is composed of eleven chapters, each chapter has its
own scope and meaning; to summarize each chapter see the below bullets:
In Chapter 3, we have seen that when we logged into Microsoft 365 admin
center home page – what are the default report cards are available in the
home page and how to manage these report cards like adding a new report
card, removing a report card from the home page and list of cards are
available to add in Dashboard in the Microsoft 365 admin center
In the administering office 365 we have seen how to manage tenant users
like adding a new user, removing a user etc., how to manage guest users,
how to manage groups in Office 365, various types of groups (below
mentioned) in Office 365 and how to work with them.
● Office 365
● Distribution
Page 230
● Mail-enabled Security
● Security
In the billing management section, we have seen the below bullets and how
to manage them sophisticatedly.
● Purchase Service
● Licenses Report
● Billing Accounts
● Billing Methods
● Billing Notification
3. Message Center
4. Service Health
Page 231
Chapter 7: Administering SharePoint admin center
This chapter is the most interesting and biggest – here are most of the tasks
a SharePoint administrator works on. To summarize the SharePoint Online
administration section, we can have the below notes:
Page 232
● Views in Active Sites:
1. Sharing and
2. Access Control
How to manage the global settings page in SharePoint admin center like
below:
How to manage the below global settings from the Tenant setting page:
● Site Pages
Page 233
● Information Rights Management (IRM)
● Site Creation
● Subsite Creation:
● Custom Script
● Preview Features
● Connected Services
In the modern SharePoint Online, the hub site is very important concept, so
with respect to hub site, we have seen the below:
Page 234
● How to add a Team site or communication site to the Hub Site?
● PnP PowerShell script to get all sites connected to hub site: Test
● Let’s see the exported hub sites report – how does it look like?
● View all sites those are connected to a hub site using SharePoint
admin center URL (UI):
In the workflow report chapter, we have seen how to export all workflows
from SharePoint Online Tenant using PowerShell CSOM and PnP PowerShell
and also, we have seen how to Install PnP PowerShell:
In this chapter, we have learned what is a team site and communication site
template and when to use which one. And, we have learned using PnP
PowerShell how we can create a team and communication site.
Page 235
2. Site Collection Navigation (Global Navigation)
4. Megamenu Navigation
5. Personal Navigation
Thanks so much for reading this book. If this book really helps you – please
share this book with your colleagues and friends. In the future, I have a lot
of plans to write this type of book for the SharePoint administrator, Power
User, developer and architect, so until then stay tuned!!! Once again thanks
for being with me on this journey, and hopefully together we will cross
Page 236
Resources
Reference URLs:
● https://docs.microsoft.com/en-us/sharepoint/planning-hub-sites
● https://docs.microsoft.com/en-us/powershell/module/sharepoint-
pnp/new-pnpsite?view=sharepoint-ps
● https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-
pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps
Page 237
Download more ebooks
Page 238