Skip to content

Commit

Permalink
Merge pull request #1178 from Ren-Roros-Digital/MeetingChatEnabledType
Browse files Browse the repository at this point in the history
feat: Customization MeetingChatEnabledType
  • Loading branch information
KelvinTegelaar authored Nov 12, 2024
2 parents 8fc6150 + 2be197f commit 6267eaf
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ Function Invoke-CIPPStandardTeamsGlobalMeetingPolicy {

if ($null -eq $Settings.DesignatedPresenterRoleMode) { $Settings.DesignatedPresenterRoleMode = $CurrentState.DesignatedPresenterRoleMode }
if ($null -eq $Settings.AllowAnonymousUsersToJoinMeeting) { $Settings.AllowAnonymousUsersToJoinMeeting = $CurrentState.AllowAnonymousUsersToJoinMeeting }
if ($null -eq $Settings.MeetingChatEnabledType) { $Settings.MeetingChatEnabledType = $CurrentState.MeetingChatEnabledType } # Enabled, EnabledExceptAnonymous, Disabled

$StateIsCorrect = ($CurrentState.AllowAnonymousUsersToJoinMeeting -eq $Settings.AllowAnonymousUsersToJoinMeeting) -and
($CurrentState.AllowAnonymousUsersToStartMeeting -eq $false) -and
($CurrentState.AutoAdmittedUsers -eq 'EveryoneInCompanyExcludingGuests') -and
($CurrentState.AllowPSTNUsersToBypassLobby -eq $false) -and
($CurrentState.MeetingChatEnabledType -eq 'EnabledExceptAnonymous') -and
($CurrentState.MeetingChatEnabledType -eq $Settings.MeetingChatEnabledType) -and
($CurrentState.DesignatedPresenterRoleMode -eq $Settings.DesignatedPresenterRoleMode) -and
($CurrentState.AllowExternalParticipantGiveRequestControl -eq $false)

Expand All @@ -50,11 +51,11 @@ Function Invoke-CIPPStandardTeamsGlobalMeetingPolicy {
} else {
$cmdparams = @{
Identity = 'Global'
AllowAnonymousUsersToJoinMeeting = $false
AllowAnonymousUsersToJoinMeeting = $Settings.AllowAnonymousUsersToJoinMeeting
AllowAnonymousUsersToStartMeeting = $false
AutoAdmittedUsers = 'EveryoneInCompanyExcludingGuests'
AllowPSTNUsersToBypassLobby = $false
MeetingChatEnabledType = 'EnabledExceptAnonymous'
MeetingChatEnabledType = $Settings.MeetingChatEnabledType
DesignatedPresenterRoleMode = $Settings.DesignatedPresenterRoleMode
AllowExternalParticipantGiveRequestControl = $false
}
Expand Down

0 comments on commit 6267eaf

Please sign in to comment.