CmdID / PowerShell / Cmdlets / Grant
Grant-CsTeamsMediaLoggingPolicy
Assigns Teams Media Logging policy to a user or entire tenant. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 8 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-GlobalWhen this cmdlet is used with -Global identity, the policy applies to all users in the tenant, except any that have an explicit policy assignment.-GroupSpecifies the group used for the group policy assignment.-IdentitySpecifies the identity of the target user.-PassThruEnables passing a user object through the pipeline that represents the user being assigned the policy.-PolicyNameSpecifies the name of the policy to be assigned.-RankThe rank of the policy assignment, relative to other group policy assignments for the same policy type.-WhatIf, -wiShows what would happen if the cmdlet runs.