Bearbeiten

Freigeben über


Grant-CsTeamsShiftsPolicy

This cmdlet supports applying the TeamsShiftsPolicy to users in a tenant.

Syntax

Grant-CsTeamsShiftsPolicy []
Grant-CsTeamsShiftsPolicy
     [-Identity] <String>
     [[-PolicyName] <String>]
     [<CommonParameters>]
Grant-CsTeamsShiftsPolicy
     [[-PolicyName] <String>]
     [-Group] <String>
     [-Rank] <Int32>
     [<CommonParameters>]
Grant-CsTeamsShiftsPolicy
     [[-PolicyName] <String>]
     [-Global]
     [-Force]
     [<CommonParameters>]

Description

This cmdlet 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

-Force

Suppresses the display of any non-fatal error message that might arise when running the command.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Global

When you use this cmdlet without specifying a user identity, the policy applies to all users in your tenant. To skip a warning when you do this operation, specify "-Global".

Type:SwitchParameter
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Group

Specifies the group used for the group policy assignment.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Identity

UserId to whom the policy is granted. Email id is acceptable.

Type:UserIdParameter
Position:0
Default value:None
Required:False
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
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams

-Rank

The rank of the policy assignment, relative to other group policy assignments for the same policy type.

Type:Int32
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Rtc.Management.AD.UserIdParameter

Outputs

System.Object