Now that we have seen the theory, let's go
in the lab and see how we can assign site
administrators. We are now in the lab
environment, so let me go to the admin
center. Let's go to Active sites, and
let's use the same hub that we have used
previously as our test site. So, as I
select this site, you will see that I have
Owners in the toolbar. I can change the
primary admin or change admins. Let's
first of all go to Change primary admin.
Let's select John Smith, for example. So
I'll just start searching for John. Select
John Smith, and as you can see, it really
replaced Vlad because we can only have one
single primary admin per site. If I want
to change the other admins, I can go and
change admins, and here I can actually add
more people, so I can also add Ben if I
want to. Let's click on Save. If we go in
the site Settings, where can we see all of
our administrators? I will go in The Hub.
I will wait for the settings wheel to
appear. Then we can go into site Settings
and Site permissions. Let me go into Site
information, go into View old site
settings, and then we have Site collection
administrators over here where I can see
all of the people that have been added as
a site collection admin. So those people
all have the same permissions really;
however, only one of them, in this case it
was John, that is the primary owner. Now
if we want to change it via PowerShell,
what we can do if you want to change the
primary owner of the site, we need to use
the Set-SPOSite PowerShell cmdlet. So if I
want to change it to Ben, I would run a
Set-SPOSite on the site The Hub and set
the new owner to ben@ globomantics.org. If
I simply want to add a user as a site
collection administrator, in this case Ben
will already be one, so let me take
Vanessa Le, I would have to do a
Set-SPOUser, login name vanessa.le @
globomantics.org, IsSiteCollectionAdmin
equal True. Did a small mistake here. Let
me do this like that. Let's resave it, and
let's run this again. And now Vanessa Le
has been added. And if I refresh this
page, I should have Vanessa Le that
appears. It takes a bit of time until it's
shown inside the user interface. Oh, it's
actually here already, there we go, so we
have Vanessa Le that have appeared, and
John Smith was taken away. This is because
John Smith was a site collection admin
because John was an owner. But since John
was not added here and is not an owner
anymore, John has been taken away. This is
it for the demo on how to manage site
owners and site collection administrators
using both PowerShell, as well as the
admin center. Now let's go back to the slides and finish off this module.