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
Windows for business | Windows Server | User experience | PowerShell
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,931 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

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.