Skip to content

Commit

Permalink
Merge pull request #3276 from Ren-Roros-Digital/InactiveUsersPage
Browse files Browse the repository at this point in the history
feat: added features to Inactive users page
  • Loading branch information
KelvinTegelaar authored Jan 17, 2025
2 parents 8345ef2 + 243e318 commit 7d8ee7a
Showing 1 changed file with 51 additions and 2 deletions.
53 changes: 51 additions & 2 deletions src/pages/identity/reports/inactive-users-report/index.js
Original file line number Diff line number Diff line change
@@ -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: <EyeIcon />,
color: "success",
},
{
label: "Edit User",
link: "/identity/administration/users/user/edit?userId=[azureAdUserId]",
icon: <Edit />,
color: "success",
target: "_self",
},
{
label: "Block Sign In",
type: "GET",
icon: <Block />,
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: <TrashIcon />,
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",
Expand Down

0 comments on commit 7d8ee7a

Please sign in to comment.