Skip to content

feat: access-usage last-used column and filter; get_access_audit in System MCP tool catalogue - #521

Merged
nicdavidson merged 3 commits into
developfrom
feat/system-mcp-access-usage-ui
Sep 16, 2026
Merged

nicdavidson merged 3 commits into
developfrom
feat/system-mcp-access-usage-ui

Conversation

@nicdavidson

Copy link
Copy Markdown
Contributor

Summary

  • Last-used column and "Not used in" filter on apps, roles, users and admins tables, backed by df-system system/access_usage (dreamfactorysoftware/df-system PR feature/access-usage).
  • Adds get_access_audit to the System API MCP Server tool catalogue (18 tools).

Test plan

  • Unit specs added for the cell component, table state, service and utilities
  • Against a 7.7.1 test instance with df-system access-usage merged

…ogue

Read-only tool that reports last-used / never-used / stale API keys, roles
and users from system/access_usage. Catalogue and spec go from 17 to 18
tools; df-system-mcp-server TOOL_NAMES must list it after list_admins.
…, roles, users, admins

Join GET system/access_usage client-side (like the apps table's AI usage
join) through a new DfAccessUsageService, and opt the apps, roles, users
and admins tables into it via DfManageTableComponent.enableAccessUsage():

- "Last used" (apps, roles) / "Last active" (users, admins) column with
  relative time or "Never"; tooltip carries the exact time, the service
  and status of the last use, the last denial, stale window, last login
  and 30-day volume when present, and "no use recorded since" tracking
  start for never-used subjects
- muted text for stale / never-used subjects, a warning icon for inactive
  keys that clients still send, an "Unreferenced" badge on roles
- "Not used in" selector (Any / 30 / 90 / 180 days / Never used),
  filtering the loaded rows client-side; the column sorts by last use

The request is silent: on 404 (older DreamFactory), 401/403, 400 or any
error the column and filter stay hidden and the tables render as before.
@nicdavidson
nicdavidson merged commit 071008b into develop Sep 16, 2026
1 check passed
@nicdavidson
nicdavidson deleted the feat/system-mcp-access-usage-ui branch September 16, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants