Enable Privacy Mode in Teams with Microsoft Graph API

!Daniel Bradley 1,056 Reputation points MVP
2023-01-26T18:09:00.02+00:00

Hi,

I am looking to enable privacy mode in Teams by using the Graph API in some form. I am trying to achieve the equivalent of Set-CsPrivacyConfiguration -EnablePrivacyMode $true.

Does anyone know if this is supported with the Graph API?

Thank you

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,063 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,581 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 95,181 Reputation points MVP
    2023-01-26T19:26:02.7633333+00:00

    Afaik no, there is no equivalent Graph API endpoint. Most of the SfBO/Teams cmdlets however have a RESTful endpoint you can abuse, you can fetch the relevant details via Fiddler or by decompiling the module DLLs as I've demonstrated in this article. Of course, if you decide to go this route, you will be running unsupported code.

    0 comments No comments