question

NatalieHarzic-8194 avatar image
0 Votes"
NatalieHarzic-8194 asked JRhoades-MSFT commented

New SharePoint sites set default primary administrator

Hello
In the older SharePoint admin centre, it was possible to set a default site administrator. This feature no longer seems to be available. Is there a way to do this in the new SharePoint admin center? We would like to include an admin account to each new site whether created by Teams or for new modern sites.
Thanks,
Natalie

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EchoDu-MSFT avatar image
0 Votes"
EchoDu-MSFT answered EchoDu-MSFT commented

Hello @NatalieHarzic-8194 ,

Please following steps:

1.Go to the Active sites page of the new SharePoint admin center, and sign in with an account that has admin permissions for your organization.

2.On the left column, select a site.

3.Select Permissions.

  • For a group-connected team site, you can add and remove group owners and additional site admins.

118464-1.png

  • For other sites, you can add and remove site admins and change the primary admin. Note that if you remove a person as a primary admin, they will still be listed as an additional admin.

118465-2.png

For more information, please see "Manage site admins" article.

Thanks,
Echo Du

===================== Updated Answer ====================

Hi @NatalieHarzic-8194 ,

Add Site Collection Admin to All SharePoint Online Sites using PowerShell:

 #Variables for processing
 $AdminURL = "https://Crescent-admin.sharepoint.com/"
 $AdminName = "SPAdmin@Crescent.com"
      
 #User Names Password to connect 
 $Password = Read-host -assecurestring "Enter Password for $AdminName"
 $Credential = new-object -typename System.Management.Automation.PSCredential -argumentlist $AdminName, $Password
     
 #Connect to SharePoint Online
 Connect-SPOService -url $AdminURL -credential $Credential
     
 $Sites = Get-SPOSite -Limit ALL
     
 Foreach ($Site in $Sites)
 {
     Write-host "Adding Site Collection Admin for:"$Site.URL
     Set-SPOUser -site $Site -LoginName $AdminName -IsSiteCollectionAdmin $True
 }

Thanks,
Echo Du
==========================
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.








1.png (81.6 KiB)
2.png (95.3 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @NatalieHarzic-8194 ,

Is there anything else I can help with regarding this issue?
You can comment us at any time and we will continue to follow up.

Thanks,
Echo Du

0 Votes 0 ·
NatalieHarzic-8194 avatar image
0 Votes"
NatalieHarzic-8194 answered JRhoades-MSFT commented

Thank you very much @EchoDu-MSFT for your quick help. Actually, what I wanted to do is to set the the default admin on all newly created sites. Your solution is on a site-by-site basis, which is great. With the previous SharePoint control center it used to be possible to assign a designated account to automatically be added as an admin whenever a new site is created. I am guessing that Microsoft have removed this feature now. Probably because O365 groups are used to assign owners and members.

I sometimes have to do bulk actions such as looking for users across all site collections for which admin access is required. I will look down the PowerShell route to see if there is a way to automatically assign admin permissions before searching for user access within a site collection.

Thank you again.
Kind regards,
Natalie

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @NatalieHarzic-8194 ,

Thanks for your reply.

According to your new requirement, I have updated answer under initial My Answer. Hope this can help you to solve issue. Have a nice day!

Thanks,
Echo Du
======================================
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




0 Votes 0 ·

@EchoDu-MSFT ,
I think we're still missing the root ask. I see your script will add a new admin to all existing sites... but is there a way to add an admin to each new site that gets created in the future, automatically? Thanks!

0 Votes 0 ·