Primary Purpose:
Azure PIM TUI is a cross-platform terminal-based user interface tool designed to manage Azure Privileged Identity Management (PIM) roles. It enables users to efficiently view, activate, and deactivate PIM roles directly from the terminal, eliminating the need for portal navigation.
Key Features:
Bulk Role Management: Activate or deactivate multiple roles at once for streamlined administration.
Role Visibility: Monitor active roles and their remaining duration in real-time.
Permissions Display: Side-by-side comparison of role permissions for clear understanding.
Flexible Filtering: Filter roles by name and toggle between views of all, eligible, or active roles.
Configuration Support: Utilize a config file to set default justifications and durations.
Audience & Benefits:
Ideal for Azure administrators and developers seeking efficient PIM management. This tool enhances productivity by reducing context-switching and providing seamless role management directly from the terminal, thus streamlining workflows and improving operational efficiency.
Installation via winget is straightforward, ensuring quick setup and access to these powerful features.
README
Azure PIM TUI
Activate Azure PIM roles from your terminal. No portal clicking, no context switching.
What it does
Finds all your eligible PIM roles across subscriptions and groups
Activate or deactivate roles, one at a time or in bulk
Shows which roles are active and how long they have left
Displays role permissions in a side-by-side detail panel
Filter by name or switch between all/eligible/active views
Reads justification and duration defaults from a config file
Grab a binary for your platform from the latest release.
Build from source
git clone https://github.com/CosX/azure-pim-tui.git
cd azure-pim-tui
cargo install --path .
Usage
az login
azure-pim-tui
Keybindings
Key
Action
j / k / arrows
Navigate
g / G
Jump to first / last
a / Enter
Activate role
d
Deactivate role
Space
Toggle selection for bulk ops
A
Bulk activate selected
r / F5
Refresh
/
Search by name
v
Cycle view: all / eligible / active
Ctrl+d / Ctrl+u
Scroll detail panel
?
Help
q / Ctrl+C
Quit
In the activation modal: Tab switches fields, Enter confirms, Esc cancels.
Mouse
Action
Effect
Click row
Select role
Double-click row
Activate role
Click ● column
Toggle selection for bulk ops
Click Resources / Groups tab
Switch pane
Scroll wheel
Move selection in role list / scroll detail panel
Click field in activation modal
Focus field
Mouse capture disables the terminal's native text selection. Hold Shift (or Option in iTerm2/Terminal.app) while dragging to select text, or set mouse = false in the config.
Configuration
A config file is created on first run at azure-pim-tui/config.toml in your OS config directory: