I think it is not possible. As per the article: https://learn.microsoft.com/en-us/sharepoint/restricted-domains-sharing, under the section: Limiting Restrictions, 4th point you can see, it is mentioned that wild card aren't supported.
share file to an external user
Hi all
i have a document file and i want to share this file to external domain users. lets say external domain is externaldomain.com. Can i use wildcard like *.externaldomain.com and share it to external users. is this possible.
1 additional answer
Sort by: Most helpful
-
Emily Du-MSFT 48,926 Reputation points Microsoft Vendor
2023-05-30T08:08:11.3466667+00:00 As the Microsoft article provided by Karthick AP, wildcard domain is not supported in the external sharing.
If Karthick AP's answer is helpful, please remember to accept it.
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.