Grant-CsTeamsShiftsPolicy
This commandlet supports applying the TeamsShiftsPolicy to users in a tenant.
Syntax
Grant-CsTeamsShiftsPolicy
[[-Identity] <UserIdParameter>]
[-PolicyName] <String>
[<CommonParameters>]
Description
This commandlet enables admins to grant Shifts specific policy settings to users in their tenant.
Examples
Example 1
PS C:\> Grant-CsTeamsShiftsPolicy -Identity IsaiahL@mwtdemo.onmicrosoft.com -PolicyName OffShiftAccessMessage1Always
Applies the OffShiftAccessMessage1Always instance of TeamsShiftsPolicy to one user in the tenant.
Parameters
-Identity
UserId to whom the policy is granted. Email id is acceptable.
Type: | UserIdParameter |
Position: | 0 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | Microsoft Teams |
-PolicyName
The name of the TeamsShiftsPolicy instance that is being applied to the user.
Type: | String |
Position: | 1 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Microsoft Teams |
Inputs
Microsoft.Rtc.Management.AD.UserIdParameter
Outputs
System.Object
Related Links
意見反應
提交並檢視相關的意見反應