How to put each Teams Private Channel members Mailbox on eDiscovery Hold

Aase Nomad 246 Reputation points
2022-07-23T00:23:46.217+00:00

I'm writing a PowerShell Script that put each Private Teams Channel member mailbox on eDiscovery Hold but I'm just wondering how can I see those member using Service Account.

I tried doing Get-TeamChannelUser but I'm getting this error (pic). After I investigate this issue, I find out that I get this error because of my Service Account is not a member of any of the Private Teams Channel we have.

I'm just wondering if there is work around using service account or what I need to do with my Service account to be able to access all the Private Channels we have?

223849-image.png

Microsoft Teams | Development
Windows for business | Windows Server | User experience | PowerShell
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

Accepted answer
  1. Vasil Michev 119.8K Reputation points MVP Volunteer Moderator
    2022-07-23T08:25:43.84+00:00

    What role(s) have you assigned to the service account? In any case, if the idea is to meet compliance requirements, I'd recommend using the Retention policies functionality within the Purview compliance portal, which does support private channels out of the box: https://learn.microsoft.com/en-us/microsoft-365/compliance/create-retention-policies?view=o365-worldwide#retention-policy-for-teams-locations

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.