Add team member - Search in GAL
When searching for new team members, search only for users not hidden in the GAL.
It is somewhat absurd this is even implemented this way. In large organizations, specially education, some users need to be hidden for legal reasons including stalking, foreign government targeting, etc. Exposing users this was (and via AAD in general) can actually endanger people's lives.
Microsoft, fix this issue ASAP, it has been going long enough.
Brent Wilson commented
This feature should have been implemented. We have multiple shared mailboxes (which wouldn't ever be used for Teams), and while we decommission ex-employees we have the mailbox forwarded while we go through and clean up.
While this occurs we hide the username from the GAL, but they still appear in Teams.
Even if you disable Teams access from the accounts in question, the username is still searchable in Teams, but not through the GAL. Simplest solution is to not display users from the O365 portal, and only users in the GAL.
Ryan Drake commented
Definitely required, why is this not already a feature. Strikes me as a bug more than anything!
Thomas Kijanski commented
We REALLY need this feature, in our case we Office 365 administrators also have seperate admin users.
So whenever people want to chat to us, they have two choices and are simply confused. They tend to choose the wrong user, of course we won't get any notifications then!
Then there's old users that left the company and don't even have a license assigned to them. They can still be found. We do not want this to happen. The available contacs get cluttered with old users or users that do not even have a license for Teams.
We really need a function to just simply hide users from Teams. Nothing more, nothing less.
Peter Barbara commented
I am having the same issue in the company I work with. Users having assigned Exchange Online (Plan 1 & 2) O365 licenses, are still visible in Teams and I want to avoid it. This is because sometimes users tend to speak to the incorrect user account with no Teams license assigned (But still visible in Teams directory).
If this can be resolved in the near future, would be highly appreciated.
Any update on this? It seems like Teams should respect hidden users like other O365 apps.
Craig Watson commented
for delve SPO and skype for business when we set msexchhidefromaddresslists to $true.
For Microsoft Teams setting this has no effect and users can go to p2p chat and search and chat with people or add people not searchable to teams by searching for them using a display name.
It is common for users especially in Education environments to have this disabled in order to avoid harassment.
Additionally it is common for organizations to have Admin users that do not collaborate and should not show up in search results.
In Sfb and other workloads we disable these users from showing up by setting the msexchhidefromaddresslists attribute.