Dec 06 2017 12:48 PM
Hello,
I'm trying to create a mail contact for an external user so we can add the user to an address list. Unfortunately, I can't create the contact because the primary smtp address is taken by a guest mail user. The guest mail user has access to our SharePoint site.
1. How do I add a guest mail user to an address list?
2. If I delete a guest mail user will the person lose access to SharePoint?
3. If a user has a mail contact in Exchange Online, can the user still receive and accept access to our SharePoint site?
Jan 03 2020 01:24 PM
Guest Users are already in exchange as a mailuser. You cannot add them from the GUI, at least not the legacy (I personally dislike the new exchange interface, and they change the UI so fast … just forget it and use PowerShell so you don't look silly to clients fumbling around to find something M$ decided to move for no reason).
From PowerShell you can do the following:
# list your mailusers
get-mailuser | Sort-Object -Property name
# add your mailuser to a distro group
$user = get-mailuser | where name -eq 'joe.blow_domain.com#EXT#'
$group = Get-DistributionGroup 'testsecuritydistributiongroup'
Add-DistributionGroupMember -Identity $group.Identity -Member $user.UserPrincipalName
Done.
Apr 24 2020 01:09 PM
@LennyK_108 This worked and is soooo much easier than anything else I've read, thanks!!!!
Aug 25 2020 09:19 AM - edited Aug 25 2020 09:24 AM
@LennyK_108 @malfaro It is also possible to add 'Guest Mail Users' to Distribution Groups via a web browser without using PowerShell. Go to the Microsoft 365 Admin Portal - find the Guest Mail User under Users/Guest Users, select them, and click 'Manage groups' on the left hand side.
It takes a while for the group list to be updated in that console, but the changes are visible in the Exchange Admin Centre immediately.
https://admin.microsoft.com/AdminPortal/Home#/GuestUsers
Aug 26 2020 05:15 AM
Jan 20 2021 01:25 PM
@squirrelassassin650 When I create a guest user via invitation, and I perform Get-MailUser, it is NOT in the list. Even if I change using Set-AzureADUser the flag to show it ???
Mar 12 2021 01:21 PM
May 28 2021 03:07 AM
Jan 11 2022 04:09 AM
Apr 20 2022 06:36 AM
Apr 20 2022 07:59 AM
Aug 23 2022 12:15 PM
Oct 10 2022 02:49 AM
@Elham Karshenas Set-MailUser -Identity "guestuseemailaddress" -HiddenFromAddressListsEnabled $false command will help to show the guest mail user in GAL.