diff --git a/src/pages/identity/reports/inactive-users-report/index.js b/src/pages/identity/reports/inactive-users-report/index.js index af1dd1a1ff05..8764ec1236c1 100644 --- a/src/pages/identity/reports/inactive-users-report/index.js +++ b/src/pages/identity/reports/inactive-users-report/index.js @@ -1,17 +1,66 @@ import { Layout as DashboardLayout } from "/src/layouts/index.js"; import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx"; +import { EyeIcon, TrashIcon } from "@heroicons/react/24/outline"; +import { Edit, Block } from "@mui/icons-material"; const Page = () => { const pageTitle = "Inactive users (6 months)"; const apiUrl = "/api/ListInactiveAccounts"; - const actions = []; + const actions = [ + { + label: "View User", + link: "/identity/administration/users/user?userId=[azureAdUserId]", + multiPost: false, + icon: , + color: "success", + }, + { + label: "Edit User", + link: "/identity/administration/users/user/edit?userId=[azureAdUserId]", + icon: , + color: "success", + target: "_self", + }, + { + label: "Block Sign In", + type: "GET", + icon: , + url: "/api/ExecDisableUser", + data: { ID: "azureAdUserId" }, + confirmText: "Are you sure you want to block the sign-in for this user?", + multiPost: false, + }, + { + label: "Delete User", + type: "GET", + icon: , + url: "/api/RemoveUser", + data: { ID: "azureAdUserId" }, + confirmText: "Are you sure you want to delete this user?", + multiPost: false, + }, + ]; - const offCanvas = null; + const offCanvas = { + extendedInfoFields: [ + "tenantDisplayName", + "displayName", + "userPrincipalName", + "userType", + "createdDateTime", + "lastSignInDateTime", + "lastNonInteractiveSignInDateTime", + "numberOfAssignedLicenses", + "lastRefreshedDateTime", + ], + actions: actions, + }; const simpleColumns = [ "tenantDisplayName", "userPrincipalName", "displayName", + "lastSignInDateTime", "lastNonInteractiveSignInDateTime", "numberOfAssignedLicenses", "lastRefreshedDateTime",