sharepoint allowed domains adding error

ashan h 41 Reputation points

i have added domains to sharepoint admin center sharing allowed domains but after some domains adding its getting error "added domain name is not valid " and cannot save

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,565 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 94,911 Reputation points MVP

    There's a limit of ~3000 domains, so make sure you're not hitting that. You can also try adding the domain via PowerShell and the Set-SPOTenant cmdlet. If that doesn't work either, best open a support case.

  2. Emily Du-MSFT 41,771 Reputation points Microsoft Vendor

    @ashan h

    I do a test and it seems that I can't reproduce the issue in my environment.

    You could sign out of your account from the browser, clear the browser cache, close the browser, wait some time, sign into the browser with your account and then go to the SharePoint admin center to see if the issue goes away in your environment.

    If no, I kindly suggest you try the following PowerShell to see if you can add a domain to the Allow only specific domains list.

    $creds = Get-Credential      
    Connect-SPOService -Url "" -Credential $creds      
    Set-SPOTenant -SharingDomainRestrictionMode "AllowList" -SharingAllowedDomainList ""  

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.