ComplianceDiagnosticMIP.psm1

Import-Module "$PSScriptRoot\ComplianceDiagnosticUtils.psm1"

function Confirm-MipLabelCommandsPresent {
    # Check if MIP Label Commands are present
    $command = Get-Command Get-Label -ErrorAction SilentlyContinue
    if ($command -eq $null) {
        return $false
    }
    
    $command = Get-Command Get-LabelPolicy -ErrorAction SilentlyContinue
    if ($command -eq $null) {
        return $false
    }
    
    return $true
}

function Initialize-MipTab{
    $global:MipControlVariables.fileData = $null
}

function Get-MIPLabelTabContent ($TabObject){
    [Parameter(Mandatory=$true)]
    [Windows.Controls.TabItem] $TabObject

    $GetLabelPolicyButton = Get-Button -ButtonName "Analyze User Policy Configs"

    $GetUserLabelButton = Get-Button -ButtonName "Analyze User Label" -Margin "10,50,10,10"

    $GetUserPolicyButton = Get-Button -ButtonName "Analyze User Policies" -Margin "10,50,10,10"

    $mipPanelGrid = New-Object Windows.Controls.Grid
    $mipLabelTopTabControl = Get-TopTabControl
    $mipPanelGrid.Children.Add($mipLabelTopTabControl.TopTabControl) > $null
    
    $global:ContextScopeVariables.mipLabelsOutput = New-Object Windows.Controls.StackPanel

    $outputPanelTemplate = Get-TemplateGrid

    $outputPanelTemplate.Column1.Children.Add($GetLabelPolicyButton) > $null

    $outputPanelTemplate.Column1.Children.Add($GetUserLabelButton) > $null

    $outputPanelTemplate.Column1.Children.Add($GetUserPolicyButton) > $null

    $MipLabelsDiagnosticTabContent = New-Object Windows.Controls.StackPanel
    $MipLabelsDiagnosticTabContent.HorizontalAlignment = [Windows.HorizontalAlignment]::Center
    $MipLabelsDiagnosticTabContent.VerticalAlignment = [Windows.VerticalAlignment]::Top
    $MipLabelsDiagnosticTabContent.Margin = New-Object Windows.Thickness 0, 70, 0, 0 
    $MipLabelsDiagnosticTabContent.Children.Add($global:ContextScopeVariables.mipLabelsOutput) > $null

    $scrollViewer = New-Object Windows.Controls.ScrollViewer
    $scrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $scrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $outputPanelTemplate.Column2.Children.Add($MipLabelsDiagnosticTabContent) > $null
    $scrollViewer.Content = $outputPanelTemplate.Grid
    # $mipLabelTopTabControl.DiagnosticsTabItem.Content = $scrollViewer
    
    # NOTE: The variables that we use in event functions will be null if they are passed as local scope
    $GetLabelPolicyButton.Add_Click({    
        Show-AnalyzeMIPPanel -mipLabelsOutput $global:ContextScopeVariables.mipLabelsOutput -inputParam "PolicyConfig" 
    })
   
    $GetUserLabelButton.Add_Click({    
        Show-AnalyzeMIPPanel -mipLabelsOutput $global:ContextScopeVariables.mipLabelsOutput -inputParam "User Label" 
    })

    $GetUserPolicyButton.Add_Click({    
        Show-AnalyzeMIPPanel -mipLabelsOutput $global:ContextScopeVariables.mipLabelsOutput -inputParam "User Policy" 
    })
    
    
    # Collect diagnostic data from user
    $global:MipControlVariables.MipLabelsSupportDataTabContent = New-Object Windows.Controls.StackPanel
    $global:MipControlVariables.MipLabelsSupportDataTabContent.HorizontalAlignment = [Windows.HorizontalAlignment]::Center


    $SupportPanelTemplate = Get-TemplateGrid

    $MipLabelDiagButton = Get-Button -ButtonName "MIP Labels" -Margin '10,50,10,10' -width 200 -HorizontalAlignment "Left"
    $SupportPanelTemplate.Column1.Children.Add($MipLabelDiagButton) > $null

     # Define Gather Support data in a table format and pinning all the Controlds to Table Grid$tableGrid = New-Object System.Windows.Controls.Grid
    $tableGrid = Get-Table -columns 4 -rows 7

    $AffectedClientLabel = Show-Text -Text "Affected Client" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 1 -Control $AffectedClientLabel


    $AffectedClientCombo = @('Outlook For Web','Outlook Windows application', 'Word Online', 'Excel Online', 'Power Point Online', 'Word Application', 'Excel Application','Power Point Application', 'MIP SDK')
    $global:MipControlVariables.AffectedClientCombobox = Get-ComboBox  -Margin "0,5,10,5" -Width 400 -HorizontalAlignment "Left"
    $global:MipControlVariables.AffectedClientCombobox.ItemsSource = $AffectedClientCombo
    Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 2 -Control $global:MipControlVariables.AffectedClientCombobox

    $ImpactedUserLabel = Show-Text -Text "Impacted User" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 1 -Control $ImpactedUserLabel

    $global:MipControlVariables.ImpactedUserTextBox = Get-TextBox -Width 400 -Margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 2 -Control $global:MipControlVariables.ImpactedUserTextBox
        
    $dateTimeLabel = Show-Text -Text "Date & Time of issue (UTC)" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 1 -Control $dateTimeLabel

    $dateTimeButton = Get-Button -ButtonName "Select date & Time" -Margin "0,0,10,0" -HorizontalAlignment "Left" -height 30 -width 220
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 2 -Control $dateTimeButton

    $global:ContextScopeVariables["MipLabelsDateTimeLabel"] = Show-Text -Text "UTC Date Time" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 3 -Control $global:ContextScopeVariables["MipLabelsDateTimeLabel"]
    
    $dateTimeButton.Add_Click({
        $global:ContextScopeVariables.DateTimeProp = "MipLabelsDateTime"
        $global:ContextScopeVariables["MipLabelsDateTime"] = ""
        Get-DateTimePickerDialog 
    })
    
    $ImpactedLabel = Show-Text -Text "Impacted Label" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 1 -Control $ImpactedLabel

    GetGlobalLabelPol
   
    $global:MipControlVariables.ImpactedLabelCombobox = Get-ComboBox -Margin "0,0,10,0" -Width 400 -HorizontalAlignment "Left"
    $global:MipControlVariables.ImpactedLabelCombobox.ItemsSource = $global:ContextScopeVariables.labelDropDown
    #$global:MipControlVariables.ImpactedLabelCombobox.SelectionMode = "Multiple"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 2 -Control $global:MipControlVariables.ImpactedLabelCombobox

    $scopedLabelPolicyLabel = Show-Text -Text "Scoped Label Policy" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 1 -Control $scopedLabelPolicyLabel

    $global:MipControlVariables.scopedLabelPolicyCombobox = Get-ComboBox -Margin "0,0,10,0" -Width 400 -HorizontalAlignment "Left"
    $global:MipControlVariables.scopedLabelPolicyCombobox.ItemsSource = $global:ContextScopeVariables.labelpolicyDropDown
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 2 -Control $global:MipControlVariables.scopedLabelPolicyCombobox

    $BrowseAttachLabel = Show-Text -Text "Attach Screenshot/ PSR/ Fiddler Trace" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 1 -Control $BrowseAttachLabel

    $BrowseAttachButton = Get-FileButton `
        -GlobalScopeName "MipControlVariables" `
        -GlobalVariableName "BrowsedFileLabel" `
        -GlobalFileListName "fileData" `
        -ButtonName "Browse Supporting Files" `
        -Margin "0,0,10,0" `
        -HorizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"
    Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 2 -Control $BrowseAttachButton

    $global:MipControlVariables.BrowsedFileLabel = Show-Text -Text "Attached Files" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    $mipFilesScrollViewer = New-Object Windows.Controls.ScrollViewer
    $mipFilesScrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $mipFilesScrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $mipFilesScrollViewer.Content = $global:MipControlVariables.BrowsedFileLabel
    Add-ControlToTableAt -TableObj $tableGrid -row 6 -column 2 -Control $mipFilesScrollViewer

    $tableGrid.Margin = New-Object System.Windows.Thickness(10,30,10,10)
    $tableGrid.HorizontalAlignment = "Center"

    $global:MipControlVariables.MipLabelsSupportDataTabContent.Children.Add($tableGrid) > $null

    $SupportPanelTemplate.Column2.Children.Add($global:MipControlVariables.MipLabelsSupportDataTabContent ) > $null

    $DiagscrollViewer = New-Object Windows.Controls.ScrollViewer
    $DiagscrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $DiagscrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $DiagscrollViewer.Content = $SupportPanelTemplate.Grid
    $mipLabelTopTabControl.GatherSupportDataTabItem.Content = $DiagscrollViewer

    $global:MipControlVariables.MipLabelsSupportDataTabContent.Visibility = "hidden"

    $MipLabelDiagButton.Add_Click({
        Initialize-MipTab
        $global:MipControlVariables.MipLabelsSupportDataTabContent.Visibility = "visible"
    })
    
    $GetLabelPolicyExport = Get-Button -ButtonName "Export Support Data" 
    $GetLabelPolicyExport.Margin = New-Object System.Windows.Thickness(10,50,10,10)
    $global:MipControlVariables.MipLabelsSupportDataTabContent.Children.Add($GetLabelPolicyExport) > $null
    
    $GetLabelPolicyExport.Add_Click({
    
        # Create a new SaveFileDialog object
        $Folder = Get-ExportFolder("ExportedMIPData")
        if (!$Folder) {
            return
        }
        $filePath = $Folder + "\"+"MIPLabelPolicyExport.Json"
        
        $supportData=@{}
        $supportData["Policies"] = $global:ContextScopeVariables.labelpolicy
        $supportData["Labels"] = $global:ContextScopeVariables.Labels
        $supportData["ImpactedClient"] = $global:MipControlVariables.AffectedClientCombobox.Text
        $supportData["ImpactedUser"] = $global:MipControlVariables.ImpactedUserTextBox.Text
        $supportData["ImpactedLabel"] = $global:MipControlVariables.ImpactedLabelCombobox.Text
        $supportData["ScopedLabelPolicy"] = $global:MipControlVariables.scopedLabelPolicyCombobox.Text
        $supportData["DateTime"] = $global:ContextScopeVariables["MipLabelsDateTime"]

        try {
            # Copy the files to the destination folder
            $supportData["SupportingFiles"] = Get-FileName($global:MipControlVariables.fileData)
            foreach ($file in $global:MipControlVariables.fileData) {
                # $destinationFile = Join-Path $zipFilePath (Split-Path $file -Leaf)
                Copy-Item $file $Folder -Force
            }

            CleanAndShowFolder -Folder $Folder -supportData $supportData -filePath $filePath
        }
        catch {
            [System.Windows.MessageBox]::Show("Failed to create zip file. Error message: $_", "Error", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Error)
        }
    })
    $TabObject.Content = $mipPanelGrid
}

function GetGlobalLabelPol {
    [System.Windows.Input.Mouse]::SetCursor([System.Windows.Input.Cursors]::Wait)
    Write-Host "Getting sensitivity labels in your organization."
    $labels = Get-Label
    if ($labels -ne $null)
    {
        $labels | ForEach-Object { $_.ObjectCategory = $_.DisplayName } 
        $labels | Where-Object {$_.ParentLabelDisplayName} | ForEach-Object { $_.ObjectCategory = $_.ParentLabelDisplayName+" - "+$_.DisplayName }
        $labels | Foreach-Object { Add-Member -InputObject $_ -MemberType NoteProperty -Name "EffectiveDisplayName" -Value $_.ObjectCategory -Force}
        $global:ContextScopeVariables.Labels = $labels
        if ($global:ContextScopeVariables.Labels.GetType().Name -eq "PSObject")
        {
            $global:ContextScopeVariables.labelDropDown = @( $global:ContextScopeVariables.Labels.EffectiveDisplayName )
        }
        else
        {
            $global:ContextScopeVariables.labelDropDown = $global:ContextScopeVariables.Labels.EffectiveDisplayName
        }
    }
    
    Write-Host "Getting sensitivity label policies in your organization."
    $global:ContextScopeVariables.labelpolicy = Get-LabelPolicy -WarningAction SilentlyContinue
    if ($global:ContextScopeVariables.labelpolicy -ne $null)
    {
        if ($global:ContextScopeVariables.labelpolicy.GetType().Name -eq "PSObject")
        {
            $global:ContextScopeVariables.labelpolicyDropDown = @( $global:ContextScopeVariables.labelpolicy.Name )
        }
        else
        {
            $global:ContextScopeVariables.labelpolicyDropDown = $global:ContextScopeVariables.labelpolicy.Name
        }
    }
    
    [System.Windows.Input.Mouse]::SetCursor([System.Windows.Input.Cursors]::Arrow)
    return $global:ContextScopeVariables.Labels,$global:ContextScopeVariables.labelpolicy
}

function Show-AnalyzeMIPPanel($mipLabelsOutput,$inputParam){    
    [Parameter(Mandatory=$true)]
    [Windows.Controls.StackPanel] $mipLabelsOutput
    [Parameter(Mandatory=$true)]
    [string] $inputParam

    $textBoxControl = Get-TextCollectionControl -butttonName "Fetch User Configs" -labelText "Enter User Email ID"

    $mipLabelsOutput.Children.Clear()
    $mipLabelsOutput.Children.Add($textBoxControl.control) > $null
    $global:ContextScopeVariables.mipLabelTextBox = $textBoxControl.textBox
    $global:ContextScopeVariables.inputparam = $inputParam
    $textBoxControl.button.height = 25
    $textBoxControl.button.Add_Click({    
        GetLabelPolicy -mipLabelsOutput $global:ContextScopeVariables.mipLabelsOutput -UserEmailID $global:ContextScopeVariables.mipLabelTextBox.Text -inputparam $global:ContextScopeVariables.inputparam
    })
}

Export-ModuleMember -Function *

# SIG # Begin signature block
# MIInwQYJKoZIhvcNAQcCoIInsjCCJ64CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAQhHXsPmUcIi4E
# NL9IG1q/OvfSqwR3HVloVrdmh5xf4qCCDXYwggX0MIID3KADAgECAhMzAAADrzBA
# DkyjTQVBAAAAAAOvMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgU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