I'd like to share a file with Contoso Inc. whose employees have emails like [email protected], [email protected], etc. If I choose 'Specific people' in the share dialogue, I have to add each of them manually.

How can I share a file or a folder with many (or all) people from the same organisation while not using the 'Anyone...' link than doesn't require authorisation? Can I share the folder with the whole company by its domain name, e.g. using a mask *@contoso.com or something similar?

2 Answers 2


Possible solution:

  • create dynamic AAD group (Microsoft 365 or security group)
  • configure membership based on UPN contains "contoso.com#EXT"
  • share the folder with this group

Notes. Both groups - AAD security group and Microsoft 365 group can be used to provide permissions but and Microsoft 365 group can also be used in "Share..." dialogue.

External user must already be in AAD. To be in AAD a user must accept invitation, so... But maybe B2B can help, need to check it out.


You can use azure active directory security group for it. Security group will contains list of user, which you can use to share.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.