CmdID / PowerShell / Cmdlets / New
New-CsTeamsShiftsPolicy
This cmdlet allows you to create a new TeamsShiftPolicy instance and set it's properties. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 10 parameters Its page in the reference
Parameters
-AccessGracePeriodMinutesIndicates the grace period time in minutes between when the first shift starts or last shift ends and when access is blocked.-AccessTypeIndicates the Teams access type granted to the user.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-EnableScheduleOwnerPermissionsIndicates whether a user can manage a Shifts schedule as a team member.-ForceSuppresses the display of any non-fatal error message that might arise when running the command.-IdentityPolicy instance name.-ShiftNoticeFrequencyFrequency of warning dialog displayed when user opens Teams.-ShiftNoticeMessageCustomProvide a custom message.-ShiftNoticeMessageTypeThe warning message is shown in the blocking dialog when a user access Teams off shift hours.-WhatIf, -wiShows what would happen if the cmdlet runs.