Hi ,
It seems there is no build-in way could achive your goal. You might concern to use come third-party tools.
Here is a similiar thread discussed before, you could have a look:
https://community.spiceworks.com/topic/822728-file-sharing-for-internal-and-external-users
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Best Regards,