-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from JosephMcEvoy/Dev
Add Connect-PSZoom. !deploy
- Loading branch information
Showing
116 changed files
with
511 additions
and
2,455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,13 +30,7 @@ $UserExceptions = @( | |
$AdGroups = 'ZoomUsers' | ||
$TransferAccount = '[email protected]' | ||
Sync-ZoomUsersWithAdGroup -AdGroups $AdGroups -UserExceptions $UserExceptions -TransferAccount $TransferAccount -ApiKey $ZoomApiKey -ApiSecret $ZoomApiKey -Confirm -Verbose | ||
.PARAMETER ApiKey | ||
The API key. | ||
.PARAMETER ApiSecret | ||
The API secret. | ||
Sync-ZoomUsersWithAdGroup -AdGroups $AdGroups -UserExceptions $UserExceptions -TransferAccount $TransferAccount -Confirm -Verbose | ||
#> | ||
|
||
|
@@ -63,11 +57,7 @@ function Sync-ZoomUsersWithAdGroup() { | |
|
||
[switch]$Add = $False, | ||
|
||
[switch]$Remove = $False, | ||
|
||
[string]$ApiKey, | ||
|
||
[string]$ApiSecret | ||
[switch]$Remove = $False | ||
) | ||
begin { | ||
if ($TransferAccount) { | ||
|
@@ -114,11 +104,6 @@ function Sync-ZoomUsersWithAdGroup() { | |
|
||
$AdDiff = $AdZoomDiff | Where-Object -Property SideIndicator -eq '<=' | Select-Object -Property 'EmailAddress' | ||
|
||
$params = @{ | ||
ApiKey = $ApiKey | ||
ApiSecret = $ApiSecret | ||
} | ||
|
||
#Add users to Zoom that are in the $AdGroup and not in $UserExceptions. | ||
if ($Add) { | ||
Write-Verbose "Adding missing users that are in $AdGroup to Zoom. Skipping users in UserExceptions." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.