List of MS Teams Groups belongs to specific Person

Ramki 816 Reputation points
2021-03-11T13:16:23.387+00:00

Hello Mates

i have the below command to get the list of MS Teams belongs one specfic person "Ramki" and got the results in TESTING environment

Get-UnifiedGroup -resultsize unlimited |Where-Object {$_.managedbydetails -like "ramki"}|select Alias

however am running same command in production environment who users count is more than 2 lacks , when itry to exceute the command and got the below warnings

WARNING: The object 7Grainbowcolonyfmo_f9ca4ssssa-233a-4fcb-be0b-3831747fbc2c has been corrupted or isn't compatible with Microsoft support requirements, and it's in an inconsistent state. The following validation errors happened:
WARNING: DisplayName: Displayname cannot consist entirely of non-renderable (Control or Format or Punctuation or White Space) characters.

i can get results when i ran Get-UnifiedGroup -resultsize unlimited alone

is this correct command and how do i execute where i have 2 lacks + users are available

(Get-UnifiedGroup -ResultSize unlimited).count
WARNING: The object 7Grainbowcolonyfmo_f9ca4dbsss-233a-4fcb-be0b-3831747fbc2c has been corrupted or isn't compatible with Microsoft support requirements, and it's in an inconsistent state. The following validation errors happened:
WARNING: DisplayName: Displayname cannot consist entirely of non-renderable (Control or Format or Punctuation or White Space) characters.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,583 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,373 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 100K Reputation points MVP
    2021-03-11T13:47:17.633+00:00

    For that specific error, best open a support case.
    For listing groups "owned" by specific person, use the following:

    Get-UnifiedGroup -Filter "ManagedBy -eq 'CN=user,OU=tenant.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=EURPR03A001,DC=prod,DC=outlook,DC=com'"
    

    where you need to provide the DistinguishedName of the user.


0 additional answers

Sort by: Most helpful