diff --git a/.github/workflows/cipp_dev_build.yml b/.github/workflows/cipp_dev_build.yml index 834f1995b668..dad0dbebe307 100644 --- a/.github/workflows/cipp_dev_build.yml +++ b/.github/workflows/cipp_dev_build.yml @@ -18,10 +18,17 @@ jobs: uses: actions/checkout@v4.2.2 # Set up Node.js + - name: Get Node version + id: get_node_version + run: | + node_raw_version=$(node -p "require('./package.json').engines.node") + node_sanitized_version=$(echo $node_raw_version | sed -E 's/[^0-9.]+//g') + echo "node_version=$node_sanitized_version" >> $GITHUB_OUTPUT + - name: Set up Node.js uses: actions/setup-node@v4.2.0 with: - node-version: '20.18.1' + node-version: ${{ steps.get_node_version.outputs.node_version }} # Install dependencies - name: Install Dependencies diff --git a/.github/workflows/cipp_frontend_build.yml b/.github/workflows/cipp_frontend_build.yml index 3d6d1c79550e..76a7dbb2fbbf 100644 --- a/.github/workflows/cipp_frontend_build.yml +++ b/.github/workflows/cipp_frontend_build.yml @@ -18,10 +18,17 @@ jobs: uses: actions/checkout@v4.2.2 # Set up Node.js + - name: Get Node version + id: get_node_version + run: | + node_raw_version=$(node -p "require('./package.json').engines.node") + node_sanitized_version=$(echo $node_raw_version | sed -E 's/[^0-9.]+//g') + echo "node_version=$node_sanitized_version" >> $GITHUB_OUTPUT + - name: Set up Node.js uses: actions/setup-node@v4.2.0 with: - node-version: '20.18.1' + node-version: ${{ steps.get_node_version.outputs.node_version }} # Install dependencies - name: Install Dependencies diff --git a/package.json b/package.json index 13dac459bf3f..87d502b493e1 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "license": "AGPL-3.0", "engines": { - "node": "^20.18.1" + "node": "^22.13.0" }, "repository": { "type": "git", diff --git a/src/components/CippComponents/CippUserActions.jsx b/src/components/CippComponents/CippUserActions.jsx index 93e6d991adb6..b443b4bcb856 100644 --- a/src/components/CippComponents/CippUserActions.jsx +++ b/src/components/CippComponents/CippUserActions.jsx @@ -53,7 +53,7 @@ export const CippUserActions = () => { //tested label: "Create Temporary Access Password", - type: "GET", + type: "POST", icon: , url: "/api/ExecCreateTAP", data: { ID: "userPrincipalName" }, @@ -63,7 +63,7 @@ export const CippUserActions = () => { { //tested label: "Re-require MFA registration", - type: "GET", + type: "POST", icon: , url: "/api/ExecResetMFA", data: { ID: "userPrincipalName" }, @@ -107,26 +107,26 @@ export const CippUserActions = () => { { //tested label: "Convert to Shared Mailbox", - type: "GET", + type: "POST", icon: , - url: "/api/ExecConvertToSharedMailbox", - data: { ID: "userPrincipalName" }, + url: "/api/ExecConvertMailbox", + data: { ID: "userPrincipalName", MailboxType: "!Shared" }, confirmText: "Are you sure you want to convert this user to a shared mailbox?", multiPost: false, }, { label: "Convert to User Mailbox", - type: "GET", + type: "POST", icon: , - url: "/api/ExecConvertToSharedMailbox", - data: { ID: "userPrincipalName", ConvertToUser: true }, + url: "/api/ExecConvertMailbox", + data: { ID: "userPrincipalName", MailboxType: "!Regular" }, confirmText: "Are you sure you want to convert this user to a user mailbox?", multiPost: false, }, { //tested label: "Enable Online Archive", - type: "GET", + type: "POST", icon: , url: "/api/ExecEnableArchive", data: { ID: "userPrincipalName" }, @@ -237,7 +237,7 @@ export const CippUserActions = () => { }, { label: "Block Sign In", - type: "GET", + type: "POST", icon: , url: "/api/ExecDisableUser", data: { ID: "id" }, @@ -247,7 +247,7 @@ export const CippUserActions = () => { }, { label: "Unblock Sign In", - type: "GET", + type: "POST", icon: , url: "/api/ExecDisableUser", data: { ID: "id", Enable: true }, @@ -257,7 +257,7 @@ export const CippUserActions = () => { }, { label: "Reset Password (Must Change)", - type: "GET", + type: "POST", icon: , url: "/api/ExecResetPass", data: { @@ -271,7 +271,7 @@ export const CippUserActions = () => { }, { label: "Reset Password", - type: "GET", + type: "POST", icon: , url: "/api/ExecResetPass", data: { @@ -296,7 +296,7 @@ export const CippUserActions = () => { }, { label: "Revoke all user sessions", - type: "GET", + type: "POST", icon: , url: "/api/ExecRevokeSessions", data: { ID: "id", Username: "userPrincipalName" }, @@ -305,7 +305,7 @@ export const CippUserActions = () => { }, { label: "Delete User", - type: "GET", + type: "POST", icon: , url: "/api/RemoveUser", data: { ID: "id" }, diff --git a/src/components/CippStandards/CippStandardDialog.jsx b/src/components/CippStandards/CippStandardDialog.jsx index 69b014d723e4..cb9f571218c3 100644 --- a/src/components/CippStandards/CippStandardDialog.jsx +++ b/src/components/CippStandards/CippStandardDialog.jsx @@ -1,3 +1,4 @@ +import { differenceInDays } from 'date-fns'; import { Dialog, DialogActions, @@ -47,6 +48,12 @@ const CippStandardDialog = ({ [] ); + const isNewStandard = (dateAdded) => { + const currentDate = new Date(); + const addedDate = new Date(dateAdded); + return differenceInDays(currentDate, addedDate) <= 30; + }; + return ( + {isNewStandard(standard.addedDate) && ( + + )} {standard.label} @@ -151,6 +167,18 @@ const CippStandardDialog = ({ )} + {standard.addedDate?.length > 0 && ( + <> + + Date Added: + + + + {standard.addedDate} + + + + )} diff --git a/src/data/standards.json b/src/data/standards.json index b027c365d60b..e8dcd03d79d1 100644 --- a/src/data/standards.json +++ b/src/data/standards.json @@ -34,6 +34,7 @@ "label": "Set contact e-mails", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2022-03-13", "powershellEquivalent": "Set-MsolCompanyContactInformation", "recommendedBy": [] }, @@ -46,6 +47,7 @@ "label": "Enable the Unified Audit Log", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2021-11-16", "powershellEquivalent": "Enable-OrganizationCustomization", "recommendedBy": ["CIS"] }, @@ -77,6 +79,7 @@ "label": "Allow users to set profile photos", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2025-01-19", "powershellEquivalent": "Set-OrganizationConfig -ProfilePhotoOptions EnablePhotos and Update-MgBetaAdminPeople", "recommendedBy": [] }, @@ -89,6 +92,7 @@ "label": "Enable Phishing Protection system via branding CSS", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-01-22", "disabledFeatures": { "report": true, "warn": true, @@ -150,6 +154,7 @@ "label": "Set branding for the tenant", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-05-13", "powershellEquivalent": "Portal only", "recommendedBy": [] }, @@ -163,6 +168,7 @@ "label": "Enable Customer Lockbox", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-01-08", "powershellEquivalent": "Set-OrganizationConfig -CustomerLockBoxEnabled $true", "recommendedBy": ["CIS"] }, @@ -175,6 +181,7 @@ "label": "Enable Pronouns", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-06-05", "powershellEquivalent": "Update-MgBetaAdminPeoplePronoun -IsEnabledInOrganization:$true", "recommendedBy": [] }, @@ -188,6 +195,7 @@ "label": "Enable Usernames instead of pseudo anonymised names in reports", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2021-11-16", "powershellEquivalent": "Update-MgBetaAdminReportSetting -BodyParameter @{displayConcealedNames = $true}", "recommendedBy": [] }, @@ -201,6 +209,7 @@ "label": "Restrict guest user access to directory objects", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2022-05-04", "powershellEquivalent": "Set-AzureADMSAuthorizationPolicy -GuestUserRoleId '2af84b1e-32c8-42b7-82bc-daa82404023b'", "recommendedBy": [] }, @@ -214,6 +223,7 @@ "label": "Disable SMTP Basic Authentication", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2021-11-16", "powershellEquivalent": "Set-TransportConfig -SmtpClientAuthenticationDisabled $true", "recommendedBy": [] }, @@ -256,6 +266,7 @@ "label": "Enable Activity based Timeout", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2022-04-13", "powershellEquivalent": "Portal or Graph API", "recommendedBy": ["CIS"] }, @@ -314,6 +325,7 @@ "label": "Configure Authentication Methods Policy Settings", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2025-02-10", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicy", "recommendedBy": [] }, @@ -333,6 +345,7 @@ "label": "Deploy Application", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-07-07", "powershellEquivalent": "Portal or Graph API", "recommendedBy": [] }, @@ -346,6 +359,7 @@ "label": "Enable LAPS on the tenant", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-04-25", "powershellEquivalent": "Portal or Graph API", "recommendedBy": [] }, @@ -359,6 +373,7 @@ "label": "Enable Passwordless with Location information and Number Matching", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2021-11-16", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": ["CIS"] }, @@ -372,6 +387,7 @@ "label": "Enable OTP via Authenticator", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-12-06", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": [] }, @@ -403,6 +419,7 @@ "label": "Set Authenticator Lite state", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-05-18", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": [] }, @@ -416,6 +433,7 @@ "label": "Enable FIDO2 capabilities", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2022-12-08", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": [] }, @@ -429,6 +447,7 @@ "label": "Enable Hardware OAuth tokens", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-12-18", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": [] }, @@ -442,6 +461,7 @@ "label": "Enable OTP Software OAuth tokens", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2022-12-18", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": [] }, @@ -473,6 +493,7 @@ "label": "Enable Temporary Access Passwords", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2022-03-15", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": [] }, @@ -486,6 +507,7 @@ "label": "Do not expire passwords", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2021-11-16", "powershellEquivalent": "Update-MgDomain", "recommendedBy": ["CIS"] }, @@ -516,6 +538,7 @@ "label": "Sets the Cross-tenant access setting to trust external MFA", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-03-26", "powershellEquivalent": "Update-MgBetaPolicyCrossTenantAccessPolicyDefault", "recommendedBy": [] }, @@ -529,6 +552,7 @@ "label": "Disable M365 Tenant creation by users", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2022-11-29", "powershellEquivalent": "Update-MgPolicyAuthorizationPolicy", "recommendedBy": ["CIS"] }, @@ -548,6 +572,7 @@ "label": "Enable App consent admin requests", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-11-27", "powershellEquivalent": "Update-MgPolicyAdminConsentRequestPolicy", "recommendedBy": ["CIS"] }, @@ -585,6 +610,7 @@ "label": "Sets the state for the request to setup Authenticator", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2022-12-08", "powershellEquivalent": "Update-MgPolicyAuthenticationMethodPolicy", "recommendedBy": [] }, @@ -598,6 +624,7 @@ "label": "Disable M365 Group creation by users", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2022-07-17", "powershellEquivalent": "Update-MgBetaDirectorySetting", "recommendedBy": [] }, @@ -611,6 +638,7 @@ "label": "Disable App creation by users", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-03-20", "powershellEquivalent": "Update-MgPolicyAuthorizationPolicy", "recommendedBy": ["CIS"] }, @@ -623,6 +651,7 @@ "label": "Disable Security Group creation by users", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2022-07-17", "powershellEquivalent": "Update-MgBetaPolicyAuthorizationPolicy", "recommendedBy": [] }, @@ -635,6 +664,7 @@ "label": "Remove Legacy MFA if SD or CA is active", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2021-11-16", "powershellEquivalent": "Set-MsolUser -StrongAuthenticationRequirements $null", "recommendedBy": [] }, @@ -654,6 +684,7 @@ "label": "Disable Self Service Licensing", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2021-11-16", "powershellEquivalent": "Set-MsolCompanySettings -AllowAdHocSubscriptions $false", "recommendedBy": [] }, @@ -666,6 +697,7 @@ "label": "Disable Guest accounts that have not logged on for 90 days", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2022-10-20", "powershellEquivalent": "Graph API", "recommendedBy": [] }, @@ -686,6 +718,7 @@ "label": "Require admin consent for applications (Prevent OAuth phishing)", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2021-11-16", "powershellEquivalent": "Update-MgPolicyAuthorizationPolicy", "recommendedBy": ["CIS"] }, @@ -698,6 +731,7 @@ "label": "Allow users to consent to applications with low security risk (Prevent OAuth phishing. Lower impact, less secure)", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2022-08-16", "powershellEquivalent": "Update-MgPolicyAuthorizationPolicy", "recommendedBy": [] }, @@ -737,6 +771,7 @@ "label": "Guest Invite setting", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-11-12", "powershellEquivalent": "", "recommendedBy": [] }, @@ -761,6 +796,7 @@ "label": "Cleanup stale Entra devices", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2025-01-19", "powershellEquivalent": "Remove-MgDevice, Update-MgDevice or Graph API", "recommendedBy": [] }, @@ -773,6 +809,7 @@ "label": "Undo App Consent Standard", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2022-01-07", "powershellEquivalent": "Update-MgPolicyAuthorizationPolicy", "recommendedBy": [] }, @@ -786,6 +823,7 @@ "label": "Enable Security Defaults", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2021-11-19", "powershellEquivalent": "[Read more here](https://www.cyberdrain.com/automating-with-powershell-enabling-secure-defaults-and-sd-explained/)", "recommendedBy": [] }, @@ -799,6 +837,7 @@ "label": "Disables SMS as an MFA method", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2023-12-18", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": ["CIPP"] }, @@ -812,6 +851,7 @@ "label": "Disables Voice call as an MFA method", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2023-12-18", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": ["CIPP"] }, @@ -824,6 +864,7 @@ "label": "Disables Email as an MFA method", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2023-12-18", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": [] }, @@ -837,6 +878,7 @@ "label": "Disables Certificates as an MFA method", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2023-12-18", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": [] }, @@ -850,6 +892,7 @@ "label": "Disables QR Code Pin as an MFA method", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2024-02-10", "powershellEquivalent": "Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration", "recommendedBy": [] }, @@ -862,6 +905,7 @@ "label": "Enables per user MFA for all users.", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2024-06-14", "powershellEquivalent": "Graph API", "recommendedBy": [] }, @@ -881,6 +925,7 @@ "label": "Set Outbound Spam Alert e-mail", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-05-03", "powershellEquivalent": "Set-HostedOutboundSpamFilterPolicy", "recommendedBy": ["CIS"] }, @@ -894,6 +939,7 @@ "label": "Lower Transport Message Expiration to 12 hours", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-02-23", "powershellEquivalent": "Set-TransportConfig -MessageExpirationTimeout 12.00:00:00", "recommendedBy": [] }, @@ -928,6 +974,7 @@ "label": "Set Global Quarantine Notification Interval", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-05-03", "powershellEquivalent": "Set-QuarantinePolicy -EndUserSpamNotificationFrequency", "recommendedBy": [] }, @@ -941,6 +988,7 @@ "label": "Disable TNEF/winmail.dat", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-04-26", "powershellEquivalent": "Set-RemoteDomain -Identity 'Default' -TNEFEnabled $false", "recommendedBy": [] }, @@ -971,6 +1019,7 @@ "label": "Set Focused Inbox state", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-04-26", "powershellEquivalent": "Set-OrganizationConfig -FocusedInboxOn $true or $false", "recommendedBy": [] }, @@ -1001,6 +1050,7 @@ "label": "Set Cloud Message Recall state", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-05-31", "powershellEquivalent": "Set-OrganizationConfig -MessageRecallEnabled", "recommendedBy": [] }, @@ -1014,6 +1064,7 @@ "label": "Enable Auto-expanding archives", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2021-11-16", "powershellEquivalent": "Set-OrganizationConfig -AutoExpandingArchive", "recommendedBy": [] }, @@ -1026,6 +1077,7 @@ "label": "Enable Online Archive for all users", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-01-20", "powershellEquivalent": "Enable-Mailbox -Archive $true", "recommendedBy": [] }, @@ -1038,6 +1090,7 @@ "label": "Enable Litigation Hold for all users", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-06-25", "powershellEquivalent": "Set-Mailbox -LitigationHoldEnabled $true", "recommendedBy": [] }, @@ -1068,6 +1121,7 @@ "label": "Enable or disable 'external' warning in Outlook", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2021-11-16", "powershellEquivalent": "et-ExternalInOutlook \u2013Enabled $true or $false", "recommendedBy": ["CIS"] }, @@ -1088,6 +1142,7 @@ "label": "Enable all MailTips", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-01-14", "powershellEquivalent": "Set-OrganizationConfig", "recommendedBy": ["CIS"] }, @@ -1117,6 +1172,7 @@ "label": "Set Teams Meetings by default state", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-05-31", "powershellEquivalent": "Set-OrganizationConfig -OnlineMeetingsByDefaultEnabled", "recommendedBy": [] }, @@ -1130,6 +1186,7 @@ "label": "Disable daily Insight/Viva reports", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2022-05-25", "powershellEquivalent": "Set-UserBriefingConfig", "recommendedBy": [] }, @@ -1142,6 +1199,7 @@ "label": "Rotate DKIM keys that are 1024 bit to 2048 bit", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-03-14", "powershellEquivalent": "Rotate-DkimSigningConfig", "recommendedBy": ["CIS"] }, @@ -1154,6 +1212,7 @@ "label": "Enables DKIM for all domains that currently support it", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-03-14", "powershellEquivalent": "New-DkimSigningConfig and Set-DkimSigningConfig", "recommendedBy": ["CIS"] }, @@ -1167,6 +1226,7 @@ "label": "Enable Mailbox auditing", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-01-08", "powershellEquivalent": "Set-OrganizationConfig -AuditDisabled $false", "recommendedBy": ["CIS"] }, @@ -1192,6 +1252,7 @@ "label": "Set send/receive size limits", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-11-16", "powershellEquivalent": "Set-MailboxPlan", "recommendedBy": [] }, @@ -1263,6 +1324,7 @@ "label": "Set Sharing Level for Default calendar", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-04-27", "powershellEquivalent": "Set-MailboxFolderPermission", "recommendedBy": [] }, @@ -1276,6 +1338,7 @@ "label": "Disable external calendar sharing", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-01-08", "powershellEquivalent": "Get-SharingPolicy | Set-SharingPolicy -Enabled $False", "recommendedBy": ["CIS"] }, @@ -1289,6 +1352,7 @@ "label": "Automatically deploy proxy addresses", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2025-02-07", "powershellEquivalent": "set-mailbox -emailaddresses @{add=$emailaddress}" }, { @@ -1301,6 +1365,7 @@ "label": "Disable additional storage providers in OWA", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-01-17", "powershellEquivalent": "Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -AdditionalStorageProvidersEnabled $False", "recommendedBy": ["CIS"] }, @@ -1346,6 +1411,7 @@ "label": "Set shorten meetings state", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-05-27", "powershellEquivalent": "Set-OrganizationConfig -ShortenEventScopeDefault -DefaultMinutesToReduceShortEventsBy -DefaultMinutesToReduceLongEventsBy", "recommendedBy": [] }, @@ -1376,6 +1442,7 @@ "label": "Set Bookings state", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-05-31", "powershellEquivalent": "Set-OrganizationConfig -BookingsEnabled", "recommendedBy": [] }, @@ -1389,6 +1456,7 @@ "label": "Disable users from installing add-ins in Outlook", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-02-05", "powershellEquivalent": "Get-ManagementRoleAssignment | Remove-ManagementRoleAssignment", "recommendedBy": ["CIS"] }, @@ -1406,6 +1474,7 @@ "label": "Remove Safe Senders to prevent SPF bypass", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2023-10-26", "powershellEquivalent": "Set-MailboxJunkEmailConfiguration", "recommendedBy": [] }, @@ -1425,6 +1494,7 @@ "label": "Set mailbox Sent Items delegation (Sent items for shared mailboxes)", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2021-11-16", "powershellEquivalent": "Set-Mailbox", "recommendedBy": [] }, @@ -1438,6 +1508,7 @@ "label": "Allow users to send from their alias addresses", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2022-05-25", "powershellEquivalent": "Set-Mailbox", "recommendedBy": [] }, @@ -1474,6 +1545,7 @@ "label": "Set the state of the built-in Report button in Outlook", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-06-28", "powershellEquivalent": "New-ReportSubmissionPolicy or Set-ReportSubmissionPolicy and New-ReportSubmissionRule or Set-ReportSubmissionRule", "recommendedBy": [] }, @@ -1487,6 +1559,7 @@ "label": "Disable Shared Mailbox AAD accounts", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2021-11-16", "powershellEquivalent": "Get-Mailbox & Update-MgUser", "recommendedBy": ["CIS"] }, @@ -1500,6 +1573,7 @@ "label": "Disable automatic forwarding to external recipients", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2024-07-26", "powershellEquivalent": "Set-HostedOutboundSpamFilterPolicy -AutoForwardingMode 'Off'", "recommendedBy": ["CIS"] }, @@ -1520,6 +1594,7 @@ "label": "Retention Policy, permanently delete items in Deleted Items after X days", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2025-02-02", "powershellEquivalent": "Set-RetentionPolicyTag", "recommendedBy": [] }, @@ -1539,6 +1614,7 @@ "label": "Quarantine Release Request Alert", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-07-15", "powershellEquivalent": "New-ProtectionAlert and Set-ProtectionAlert", "recommendedBy": [] }, @@ -1567,6 +1643,7 @@ "label": "Default SafeLinks Policy", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-03-25", "powershellEquivalent": "Set-SafeLinksPolicy or New-SafeLinksPolicy", "recommendedBy": ["CIS"] }, @@ -1775,6 +1852,7 @@ "label": "Default Anti-Phishing Policy", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-03-25", "powershellEquivalent": "Set-AntiphishPolicy or New-AntiphishPolicy", "recommendedBy": ["CIS"] }, @@ -1844,6 +1922,7 @@ "label": "Default Safe Attachment Policy", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-03-25", "powershellEquivalent": "Set-SafeAttachmentPolicy or New-SafeAttachmentPolicy", "recommendedBy": ["CIS"] }, @@ -1864,6 +1943,7 @@ "label": "Default Atp Policy For O365", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-03-25", "powershellEquivalent": "Set-AtpPolicyForO365", "recommendedBy": ["CIS"] }, @@ -1943,6 +2023,7 @@ "label": "Default Malware Filter Policy", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-03-25", "powershellEquivalent": "Set-MalwareFilterPolicy or New-MalwareFilterPolicy", "recommendedBy": ["CIS"] }, @@ -2144,6 +2225,7 @@ "label": "Default Spam Filter Policy", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-07-15", "powershellEquivalent": "New-HostedContentFilterPolicy or Set-HostedContentFilterPolicy", "recommendedBy": [] }, @@ -2162,6 +2244,7 @@ "label": "Set inactive device retirement days", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-05-19", "powershellEquivalent": "Graph API", "recommendedBy": [] }, @@ -2234,6 +2317,7 @@ "label": "Set Intune Company Portal branding profile", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-06-20", "powershellEquivalent": "Graph API", "recommendedBy": [] }, @@ -2270,6 +2354,7 @@ "label": "Set Intune Compliance Settings", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-11-12", "powershellEquivalent": "", "recommendedBy": [] }, @@ -2288,6 +2373,7 @@ "label": "Set Maximum Number of Devices per user", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2023-03-27", "powershellEquivalent": "Update-MgBetaPolicyDeviceRegistrationPolicy", "recommendedBy": [] }, @@ -2299,6 +2385,7 @@ "label": "Require Multifactor Authentication to register or join devices with Microsoft Entra", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2023-10-23", "powershellEquivalent": "Update-MgBetaPolicyDeviceRegistrationPolicy", "recommendedBy": [] }, @@ -2369,6 +2456,7 @@ "label": "Set deleted user retention time in OneDrive", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2022-06-15", "powershellEquivalent": "Update-MgBetaAdminSharepointSetting", "recommendedBy": [] }, @@ -2387,6 +2475,7 @@ "label": "Set Default Timezone for Tenant", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-04-20", "powershellEquivalent": "Update-MgBetaAdminSharepointSetting", "recommendedBy": [] }, @@ -2399,6 +2488,7 @@ "label": "Enable SharePoint and OneDrive integration with Azure AD B2B", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-07-09", "powershellEquivalent": "Set-SPOTenant -EnableAzureADB2BIntegration $true", "recommendedBy": ["CIS 3.0"] }, @@ -2411,6 +2501,7 @@ "label": "Disallow downloading infected files from SharePoint", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-07-09", "powershellEquivalent": "Set-SPOTenant -DisallowInfectedFileDownload $true", "recommendedBy": ["CIS 3.0"] }, @@ -2423,6 +2514,7 @@ "label": "Disable Legacy Workflows", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-07-15", "powershellEquivalent": "Set-SPOTenant -DisableWorkflow2010 $true -DisableWorkflow2013 $true -DisableBackToClassic $true", "recommendedBy": [] }, @@ -2435,6 +2527,7 @@ "label": "Default sharing to Direct users", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-07-09", "powershellEquivalent": "Set-SPOTenant -DefaultSharingLinkType Direct", "recommendedBy": ["CIS 3.0"] }, @@ -2453,6 +2546,7 @@ "label": "Set guest access to expire automatically", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-07-09", "powershellEquivalent": "Set-SPOTenant -ExternalUserExpireInDays 30 -ExternalUserExpirationRequired $True", "recommendedBy": ["CIS 3.0"] }, @@ -2471,6 +2565,7 @@ "label": "Require reauthentication with verification code", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-07-09", "powershellEquivalent": "Set-SPOTenant -EmailAttestationRequired $true -EmailAttestationReAuthDays 15", "recommendedBy": ["CIS 3.0"] }, @@ -2501,6 +2596,7 @@ "label": "Set Add Shortcuts To OneDrive button state", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2023-07-25", "powershellEquivalent": "Set-SPOTenant -DisableAddShortcutsToOneDrive $true or $false", "recommendedBy": [] }, @@ -2531,6 +2627,7 @@ "label": "Set SharePoint sync button state", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-07-26", "powershellEquivalent": "Set-SPOTenant -HideSyncButtonOnTeamSite $true or $false", "recommendedBy": [] }, @@ -2544,6 +2641,7 @@ "label": "Disable legacy basic authentication for SharePoint", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-02-05", "powershellEquivalent": "Set-SPOTenant -LegacyAuthProtocolsEnabled $false", "recommendedBy": ["CIS"] }, @@ -2581,6 +2679,7 @@ "label": "Set Sharing Level for OneDrive and SharePoint", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2022-06-15", "powershellEquivalent": "Update-MgBetaAdminSharepointSetting", "recommendedBy": ["CIS"] }, @@ -2594,6 +2693,7 @@ "label": "Disable Resharing by External Users", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2022-06-15", "powershellEquivalent": "Update-MgBetaAdminSharepointSetting", "recommendedBy": ["CIS"] }, @@ -2607,6 +2707,7 @@ "label": "Disable site creation by standard users", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2022-06-15", "powershellEquivalent": "Update-MgAdminSharepointSetting", "recommendedBy": [] }, @@ -2625,6 +2726,7 @@ "label": "Exclude File Extensions from Syncing", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2022-06-15", "powershellEquivalent": "Update-MgAdminSharepointSetting", "recommendedBy": [] }, @@ -2637,6 +2739,7 @@ "label": "Do not allow Mac devices to sync using OneDrive", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2022-06-15", "powershellEquivalent": "Update-MgAdminSharepointSetting", "recommendedBy": [] }, @@ -2649,6 +2752,7 @@ "label": "Only allow users to sync OneDrive from AAD joined devices", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2022-06-15", "powershellEquivalent": "Update-MgAdminSharepointSetting", "recommendedBy": [] }, @@ -2688,6 +2792,7 @@ "label": "Restrict sharing to a specific domain", "impact": "High Impact", "impactColour": "danger", + "addedDate": "2024-06-20", "powershellEquivalent": "Update-MgAdminSharepointSetting", "recommendedBy": [] }, @@ -2749,11 +2854,17 @@ "value": "Disabled" } ] + }, + { + "type": "switch", + "name": "standards.TeamsGlobalMeetingPolicy.AllowExternalParticipantGiveRequestControl", + "label": "External participants can give or request control" } ], "label": "Define Global Meeting Policy for Teams", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-11-12", "powershellEquivalent": "Set-CsTeamsMeetingPolicy -AllowAnonymousUsersToJoinMeeting $false -AllowAnonymousUsersToStartMeeting $false -AutoAdmittedUsers EveryoneInCompanyExcludingGuests -AllowPSTNUsersToBypassLobby $false -MeetingChatEnabledType EnabledExceptAnonymous -DesignatedPresenterRoleMode $DesignatedPresenterRoleMode -AllowExternalParticipantGiveRequestControl $false", "recommendedBy": ["CIS 3.0"] }, @@ -2773,6 +2884,7 @@ "label": "Disallow emails to be sent to channel email addresses", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-07-30", "powershellEquivalent": "Set-CsTeamsClientConfiguration -AllowEmailIntoChannel $false", "recommendedBy": ["CIS 3.0"] }, @@ -2811,6 +2923,7 @@ "label": "Define approved cloud storage services for external file sharing in Teams", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-07-28", "powershellEquivalent": "Set-CsTeamsClientConfiguration -AllowGoogleDrive $false -AllowShareFile $false -AllowBox $false -AllowDropBox $false -AllowEgnyte $false", "recommendedBy": ["CIS 3.0"] }, @@ -2843,6 +2956,7 @@ "label": "Default voice and face enrollment", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2024-11-12", "powershellEquivalent": "Set-CsTeamsMeetingPolicy -Identity Global -EnrollUserOverride $false", "recommendedBy": [] }, @@ -2872,6 +2986,7 @@ "label": "External Access Settings for Microsoft Teams", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-07-30", "powershellEquivalent": "Set-CsExternalAccessPolicy", "recommendedBy": [] }, @@ -2928,6 +3043,7 @@ "label": "Federation Configuration for Microsoft Teams", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2024-07-31", "powershellEquivalent": "Set-CsTenantFederationConfiguration", "recommendedBy": [] }, @@ -3012,6 +3128,7 @@ "label": "Global Messaging Policy for Microsoft Teams", "impact": "Medium Impact", "impactColour": "warning", + "addedDate": "2025-01-10", "powershellEquivalent": "Set-CsTeamsMessagingPolicy", "recommendedBy": [] }, @@ -3083,6 +3200,7 @@ ], "label": "Enable Autopilot Status Page", "impact": "Low Impact", + "addedDate": "2023-12-30", "impactColour": "info", "recommendedBy": [] }, @@ -3183,6 +3301,7 @@ "label": "Enable Autopilot Profile", "impact": "Low Impact", "impactColour": "info", + "addedDate": "2023-12-30", "recommendedBy": [] }, { @@ -3196,6 +3315,7 @@ "remediate": false }, "impact": "High Impact", + "addedDate": "2023-12-30", "helpText": "Deploy and manage Intune templates across devices.", "addedComponent": [ { @@ -3228,6 +3348,13 @@ "required": false, "name": "customGroup", "label": "Enter the custom group name if you selected 'Assign to Custom Group'. Wildcards are allowed." + }, + { + "name": "excludeGroup", + "label": "Exclude Groups", + "type": "textField", + "required": false, + "helpText": "Enter the group name to exclude from the assignment. Wildcards are allowed." } ] }, @@ -3241,6 +3368,7 @@ "remediate": false }, "impact": "Medium Impact", + "addedDate": "2023-12-30", "helpText": "Deploy transport rules to manage email flow.", "addedComponent": [ { @@ -3267,6 +3395,7 @@ "remediate": false }, "impact": "High Impact", + "addedDate": "2023-12-30", "helpText": "Manage conditional access policies for better security.", "addedComponent": [ { @@ -3303,6 +3432,7 @@ "remediate": false }, "impact": "Medium Impact", + "addedDate": "2023-12-30", "helpText": "Deploy and manage Exchange connectors.", "addedComponent": [ { @@ -3329,6 +3459,7 @@ "remediate": false }, "impact": "Medium Impact", + "addedDate": "2023-12-30", "helpText": "Deploy and manage group templates.", "addedComponent": [ { diff --git a/src/pages/email/administration/contacts/index.js b/src/pages/email/administration/contacts/index.js index 9d75996d8652..22e922d006ce 100644 --- a/src/pages/email/administration/contacts/index.js +++ b/src/pages/email/administration/contacts/index.js @@ -20,7 +20,7 @@ const Page = () => { }, { label: "Remove Contact", - type: "GET", + type: "POST", url: "/api/RemoveContact", data: { GUID: "id", diff --git a/src/pages/email/administration/mailbox-rules/index.js b/src/pages/email/administration/mailbox-rules/index.js index c80b749aad07..e25ba44d8ae6 100644 --- a/src/pages/email/administration/mailbox-rules/index.js +++ b/src/pages/email/administration/mailbox-rules/index.js @@ -10,7 +10,7 @@ const Page = () => { const actions = [ { label: "Remove Mailbox Rule", - type: "GET", + type: "POST", icon: , url: "/api/ExecRemoveMailboxRule", data: { ruleId: "Identity", userPrincipalName: "UserPrincipalName", ruleName: "Name" }, diff --git a/src/pages/email/administration/mailboxes/index.js b/src/pages/email/administration/mailboxes/index.js index 90bfc401266e..128fd39dd175 100644 --- a/src/pages/email/administration/mailboxes/index.js +++ b/src/pages/email/administration/mailboxes/index.js @@ -2,7 +2,7 @@ import { Layout as DashboardLayout } from "/src/layouts/index.js"; import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx"; import Link from "next/link"; import { Button } from "@mui/material"; -import { Add } from "@mui/icons-material"; +import { Add, Mail } from "@mui/icons-material"; import { Archive, @@ -35,7 +35,7 @@ const Page = () => { }, { label: "Send MFA Push", - type: "GET", + type: "POST", url: "/api/ExecSendPush", data: { UserEmail: "UPN", @@ -44,35 +44,37 @@ const Page = () => { icon: , }, { - label: "Convert to Shared Mailbox", - type: "GET", - icon: , - url: "/api/ExecConvertToSharedMailbox", + label: "Convert to User Mailbox", + type: "POST", + url: "/api/ExecConvertMailbox", + icon: , data: { ID: "UPN", + MailboxType: "!Regular", }, - confirmText: "Are you sure you want to convert this mailbox to a shared mailbox?", - condition: (row) => row.recipientTypeDetails !== "SharedMailbox", + confirmText: "Are you sure you want to convert this mailbox to a user mailbox?", + condition: (row) => row.recipientTypeDetails !== "UserMailbox", }, { - label: "Convert to User Mailbox", - type: "GET", - url: "/api/ExecConvertToSharedMailbox", - icon: , + label: "Convert to Shared Mailbox", + type: "POST", + icon: , + url: "/api/ExecConvertMailbox", data: { ID: "UPN", - ConvertToUser: true, + MailboxType: "!Shared", }, - confirmText: "Are you sure you want to convert this mailbox to a user mailbox?", - condition: (row) => row.recipientTypeDetails !== "UserMailbox", + confirmText: "Are you sure you want to convert this mailbox to a shared mailbox?", + condition: (row) => row.recipientTypeDetails !== "SharedMailbox", }, { label: "Convert to Room Mailbox", - type: "GET", - url: "/api/ExecConvertToRoomMailbox", + type: "POST", + url: "/api/ExecConvertMailbox", icon: , data: { ID: "UPN", + MailboxType: "!Room", }, confirmText: "Are you sure you want to convert this mailbox to a room mailbox?", condition: (row) => row.recipientTypeDetails !== "RoomMailbox", @@ -80,7 +82,7 @@ const Page = () => { { //tested label: "Enable Online Archive", - type: "GET", + type: "POST", icon: , url: "/api/ExecEnableArchive", data: { ID: "UPN" }, @@ -115,7 +117,7 @@ const Page = () => { }, { label: "Start Managed Folder Assistant", - type: "GET", + type: "POST", url: "/api/ExecStartManagedFolderAssistant", icon: , data: { @@ -125,16 +127,16 @@ const Page = () => { }, { label: "Delete Mailbox", - type: "GET", + type: "POST", icon: , // Added - url: "/api/RemoveMailbox", + url: "/api/RemoveUser", data: { ID: "UPN" }, confirmText: "Are you sure you want to delete this mailbox?", multiPost: false, }, { label: "Copy Sent Items to Shared Mailbox", - type: "GET", + type: "POST", url: "/api/ExecCopyForSent", data: { ID: "UPN" }, confirmText: "Are you sure you want to enable Copy Sent Items to Shared Mailbox?", @@ -144,7 +146,7 @@ const Page = () => { }, { label: "Disable Copy Sent Items to Shared Mailbox", - type: "GET", + type: "POST", url: "/api/ExecCopyForSent", data: { ID: "UPN", MessageCopyForSentAsEnabled: false }, confirmText: "Are you sure you want to disable Copy Sent Items to Shared Mailbox?", diff --git a/src/pages/email/administration/tenant-allow-block-lists/add.jsx b/src/pages/email/administration/tenant-allow-block-lists/add.jsx index 66c7eeb89445..434e4cbaa7fa 100644 --- a/src/pages/email/administration/tenant-allow-block-lists/add.jsx +++ b/src/pages/email/administration/tenant-allow-block-lists/add.jsx @@ -65,6 +65,7 @@ const AddTenantAllowBlockList = () => { name="listType" formControl={formControl} multiple={false} + creatable={false} options={[ { label: "Sender", value: "Sender" }, { label: "Url", value: "Url" }, @@ -82,6 +83,7 @@ const AddTenantAllowBlockList = () => { name="listMethod" formControl={formControl} multiple={false} + creatable={false} options={[ { label: "Block", value: "Block" }, { label: "Allow", value: "Allow" }, diff --git a/src/pages/email/administration/tenant-allow-block-lists/index.js b/src/pages/email/administration/tenant-allow-block-lists/index.js index 95f80532ee5c..4770163895fa 100644 --- a/src/pages/email/administration/tenant-allow-block-lists/index.js +++ b/src/pages/email/administration/tenant-allow-block-lists/index.js @@ -17,22 +17,18 @@ const Page = () => { Entries: "Value", ListType: "ListType", }, - confirmText: "Are you sure you want to delete?", + confirmText: "Are you sure you want to delete this entry?", color: "danger", icon: , }, ]; - const offCanvas = { - extendedInfoFields: ["Value", "Notes", "ExpirationDate"], - actions: actions, - }; - const simpleColumns = [ "Value", "ListType", "Action", "Notes", + "LastUsedDate", "LastModifiedDateTime", "ExpirationDate", ]; @@ -42,7 +38,6 @@ const Page = () => { title={pageTitle} apiUrl="/api/ListTenantAllowBlockList" actions={actions} - offCanvas={offCanvas} simpleColumns={simpleColumns} titleButton={{ label: "Add", diff --git a/src/pages/email/reports/SharedMailboxEnabledAccount/index.js b/src/pages/email/reports/SharedMailboxEnabledAccount/index.js index 186556bbe91e..4b05494fa344 100644 --- a/src/pages/email/reports/SharedMailboxEnabledAccount/index.js +++ b/src/pages/email/reports/SharedMailboxEnabledAccount/index.js @@ -19,7 +19,7 @@ const Page = () => { actions={[ { label: "Block Sign In", - type: "GET", + type: "POST", icon: , url: "/api/ExecDisableUser", data: { ID: "id" }, diff --git a/src/pages/email/reports/antiphishing-filters/index.js b/src/pages/email/reports/antiphishing-filters/index.js index 0d3d3d26e736..23cee4f3b5dd 100644 --- a/src/pages/email/reports/antiphishing-filters/index.js +++ b/src/pages/email/reports/antiphishing-filters/index.js @@ -9,11 +9,11 @@ const Page = () => { const actions = [ { label: "Enable Rule", - type: "GET", + type: "POST", icon: , url: "/api/EditAntiPhishingFilter", data: { - State: "Enable", + State: "!Enable", RuleName: "RuleName", }, confirmText: "Are you sure you want to enable this rule?", @@ -21,11 +21,11 @@ const Page = () => { }, { label: "Disable Rule", - type: "GET", + type: "POST", icon: , url: "/api/EditAntiPhishingFilter", data: { - State: "Disable", + State: "!Disable", RuleName: "RuleName", }, confirmText: "Are you sure you want to disable this rule?", diff --git a/src/pages/email/reports/malware-filters/index.js b/src/pages/email/reports/malware-filters/index.js index 5ede0778ed93..4e0c638e0f8a 100644 --- a/src/pages/email/reports/malware-filters/index.js +++ b/src/pages/email/reports/malware-filters/index.js @@ -10,11 +10,11 @@ const Page = () => { actions={[ { label: "Enable Rule", - type: "GET", + type: "POST", icon: , url: "/api/EditMalwareFilter", data: { - State: "Enable", + State: "!Enable", RuleName: "RuleName", }, confirmText: "Are you sure you want to enable this rule?", @@ -22,11 +22,11 @@ const Page = () => { }, { label: "Disable Rule", - type: "GET", + type: "POST", icon: , url: "/api/EditMalwareFilter", data: { - State: "Disable", + State: "!Disable", RuleName: "RuleName", }, confirmText: "Are you sure you want to disable this rule?", diff --git a/src/pages/email/reports/safeattachments-filters/index.js b/src/pages/email/reports/safeattachments-filters/index.js index 11e15a1bdea7..3821410fe6e0 100644 --- a/src/pages/email/reports/safeattachments-filters/index.js +++ b/src/pages/email/reports/safeattachments-filters/index.js @@ -10,7 +10,7 @@ const Page = () => { const actions = [ { label: "Enable Rule", - type: "GET", + type: "POST", icon: , url: "/api/EditSafeAttachmentsFilter", data: { @@ -19,11 +19,11 @@ const Page = () => { }, confirmText: "Are you sure you want to enable this rule?", color: "info", - condition: (row) => row.State === "Disabled" + condition: (row) => row.State === "Disabled", }, { label: "Disable Rule", - type: "GET", + type: "POST", icon: , url: "/api/EditSafeAttachmentsFilter", data: { diff --git a/src/pages/email/reports/safelinks-filters/index.js b/src/pages/email/reports/safelinks-filters/index.js index bee1985d9745..e1e694125e6e 100644 --- a/src/pages/email/reports/safelinks-filters/index.js +++ b/src/pages/email/reports/safelinks-filters/index.js @@ -14,7 +14,7 @@ const Page = () => { const actions = [ { label: "Enable Rule", - type: "GET", + type: "POST", icon: , url: "/api/EditSafeLinksFilter", data: { @@ -27,7 +27,7 @@ const Page = () => { }, { label: "Disable Rule", - type: "GET", + type: "POST", icon: , url: "/api/EditSafeLinksFilter", data: { diff --git a/src/pages/email/resources/management/list-rooms/index.js b/src/pages/email/resources/management/list-rooms/index.js index 9fc307d60e63..bbf9e9f2d1c2 100644 --- a/src/pages/email/resources/management/list-rooms/index.js +++ b/src/pages/email/resources/management/list-rooms/index.js @@ -18,7 +18,7 @@ const Page = () => { }, { label: "Block Sign In", - type: "GET", + type: "POST", icon: , url: "/api/ExecDisableUser", data: { ID: "id" }, @@ -28,7 +28,7 @@ const Page = () => { }, { label: "Unblock Sign In", - type: "GET", + type: "POST", icon: , url: "/api/ExecDisableUser", data: { ID: "id", Enable: true }, @@ -38,10 +38,10 @@ const Page = () => { }, { label: "Delete Room", - type: "GET", + type: "POST", icon: , - url: "/api/RemoveMailbox", - data: { ID: "mail" }, + url: "/api/RemoveUser", + data: { ID: "id" }, confirmText: "Are you sure you want to delete this room mailbox?", multiPost: false, condition: (row) => !row.isDirSynced, @@ -62,7 +62,7 @@ const Page = () => { "city", "state", "countryOrRegion", - "hiddenFromAddressListsEnabled" + "hiddenFromAddressListsEnabled", ]} cardButton={ + color="muted" + style={{ paddingLeft: 0 }} + size="small" + href={`https://entra.microsoft.com/${userSettingsDefaults.currentTenant}/#view/Microsoft_AAD_UsersAndTenants/UserProfileMenuBlade/~/overview/userId/${userId}`} + target="_blank" + rel="noopener noreferrer" + > + View in Entra + ), }, ] @@ -189,7 +189,7 @@ const Page = () => { const mailboxRuleActions = [ { label: "Remove Mailbox Rule", - type: "GET", + type: "POST", icon: , url: "/api/ExecRemoveMailboxRule", data: { diff --git a/src/pages/identity/reports/inactive-users-report/index.js b/src/pages/identity/reports/inactive-users-report/index.js index 8764ec1236c1..b3bd18ea373a 100644 --- a/src/pages/identity/reports/inactive-users-report/index.js +++ b/src/pages/identity/reports/inactive-users-report/index.js @@ -23,7 +23,7 @@ const Page = () => { }, { label: "Block Sign In", - type: "GET", + type: "POST", icon: , url: "/api/ExecDisableUser", data: { ID: "azureAdUserId" }, @@ -32,7 +32,7 @@ const Page = () => { }, { label: "Delete User", - type: "GET", + type: "POST", icon: , url: "/api/RemoveUser", data: { ID: "azureAdUserId" }, diff --git a/src/pages/teams-share/sharepoint/index.js b/src/pages/teams-share/sharepoint/index.js index 5b15705536f9..eaaec4d56a05 100644 --- a/src/pages/teams-share/sharepoint/index.js +++ b/src/pages/teams-share/sharepoint/index.js @@ -129,7 +129,7 @@ const Page = () => { url: "/api/listUsers", labelField: (user) => `${user.displayName} (${user.userPrincipalName})`, valueField: "userPrincipalName", - addedFields: { + addedField: { id: "id", }, }, diff --git a/src/pages/tenant/administration/alert-configuration/index.js b/src/pages/tenant/administration/alert-configuration/index.js index 1544d84c8e39..41f76c7dac2e 100644 --- a/src/pages/tenant/administration/alert-configuration/index.js +++ b/src/pages/tenant/administration/alert-configuration/index.js @@ -24,7 +24,7 @@ const Page = () => { }, { label: "Delete Alert", - type: "GET", + type: "POST", url: "/api/RemoveQueuedAlert", data: { ID: "RowKey", diff --git a/src/pages/tenant/conditional/list-named-locations/index.js b/src/pages/tenant/conditional/list-named-locations/index.js index 834efd07eb32..a53610c35926 100644 --- a/src/pages/tenant/conditional/list-named-locations/index.js +++ b/src/pages/tenant/conditional/list-named-locations/index.js @@ -11,7 +11,7 @@ const Page = () => { const actions = [ { label: "Add location to named location", - type: "GET", + type: "POST", url: "/api/ExecNamedLocation", icon: , data: { diff --git a/src/pages/tenant/conditional/list-policies/index.js b/src/pages/tenant/conditional/list-policies/index.js index df42715f9801..8c021df61319 100644 --- a/src/pages/tenant/conditional/list-policies/index.js +++ b/src/pages/tenant/conditional/list-policies/index.js @@ -32,40 +32,46 @@ const Page = () => { }, { label: "Enable policy", - type: "GET", - url: "/api/EditCAPolicy?State=Enabled", + type: "POST", + url: "/api/EditCAPolicy", data: { GUID: "id", + State: "!Enabled", }, confirmText: "Are you sure you want to enable this policy?", + condition: (row) => row.state !== "enabled", icon: , color: "info", }, { label: "Disable policy", - type: "GET", - url: "/api/EditCAPolicy?State=Disabled", + type: "POST", + url: "/api/EditCAPolicy", data: { GUID: "id", + State: "!Disabled", }, confirmText: "Are you sure you want to disable this policy?", + condition: (row) => row.state !== "disabled", icon: , color: "info", }, { label: "Set policy to report only", - type: "GET", - url: "/api/EditCAPolicy?State=enabledForReportingButNotEnforced", + type: "POST", + url: "/api/EditCAPolicy", data: { GUID: "id", + State: "!enabledForReportingButNotEnforced", }, confirmText: "Are you sure you want to set this policy to report only?", + condition: (row) => row.state !== "enabledForReportingButNotEnforced", icon: , color: "info", }, { label: "Delete policy", - type: "GET", + type: "POST", url: "/api/RemoveCAPolicy", data: { GUID: "id", diff --git a/src/pages/tenant/conditional/list-template/index.js b/src/pages/tenant/conditional/list-template/index.js index 8db07cbdca14..96a5f601ebb4 100644 --- a/src/pages/tenant/conditional/list-template/index.js +++ b/src/pages/tenant/conditional/list-template/index.js @@ -58,7 +58,7 @@ const Page = () => { }, { label: "Delete Template", - type: "GET", + type: "POST", url: "/api/RemoveCATemplate", icon: , data: { ID: "GUID" }, diff --git a/src/pages/tenant/standards/bpa-report/index.js b/src/pages/tenant/standards/bpa-report/index.js index d80e5eb5ae1c..7de229b882b7 100644 --- a/src/pages/tenant/standards/bpa-report/index.js +++ b/src/pages/tenant/standards/bpa-report/index.js @@ -81,7 +81,7 @@ const Page = () => { }, { label: "Delete Template", - type: "GET", + type: "POST", url: "/api/RemoveBPATemplate", data: { TemplateName: "Name",