How to connect to Microsoft Team to fetch policy configurations

Swarnim 41 Reputation points
2022-10-01T09:20:25.243+00:00

Hi! I need help to connect to Microsoft Team to fetch the policy configurations to automate stuffs.
It would be useful, if connection can happen using PowerShell module on Linux Environment.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,841 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,351 Reputation points
    2022-10-04T08:05:41.41+00:00

    Hello there,

    You can download the script from GitHub which will help you in fetching the policy configurations.

    Here is the link https:// github.com/12Knocksinna/Office365itpros/blob/master/ReportTeamsPolicyAssignments.PS1

    The report script is very straightforward.

    -Connect to the Microsoft Teams PowerShell module to fetch information about the policies assigned to users.
    -Connect to the Exchange Online management PowerShell module. This is an optional connection that I use to fetch the tenant name for the report using the Get-OrganizationConfig cmdlet. You could also use the Get-AzureADTenantDetail cmdlet from the Azure AD module.
    -For each user, extract the policy assignments and update a PowerShell list object. It’s easy to add or subtract policy assignments to customize the output.

    ---------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments