sharepoint allowed domains adding error

ashan h 41 Reputation points
2022-09-07T06:19:15.613+00:00

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

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

2 answers

Sort by: Most helpful
  1. Vasil Michev 96,161 Reputation points MVP
    2022-09-07T06:26:21.977+00:00

    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 42,026 Reputation points Microsoft Vendor
    2022-09-08T08:50:54.67+00:00

    @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 "https://tenant-admin.sharepoint.com" -Credential $creds      
    Set-SPOTenant -SharingDomainRestrictionMode "AllowList" -SharingAllowedDomainList "crescent.com crescenttech.com"  
    

    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.