Examples
This page provides practical examples for common Lumos CLI workflows with code samples.Authentication
Initial Setup
Set up the CLI for first-time use:Login with Admin Privileges
If you need admin access:Check Current User
Verify who you’re logged in as:Listing Resources
List Apps
Browse all available apps in the AppStore:List Users
Search for users:List Permissions
List permissions for a specific app:List Groups
List all groups:List Access Requests
List your pending requests:Making Access Requests
Interactive Request
The simplest way to make a request is interactively:Request with App Filter
Filter the app list to make selection faster:Fully Scripted Request
For automation, specify all parameters:Request Multiple Permissions
Request multiple permissions at once:Request for Another User
Request access on behalf of another user:Request with Duration
Specify access duration (in seconds):Dry Run
Preview the request command without submitting:Monitoring Requests
Check Request Status
Get status of your last request:Poll for Completion
Wait for a request to complete (with 2-minute timeout):Cancel a Request
Cancel a pending request:Scripting Examples
Shell Script: Impersonation Function
Add this to your.zshrc or .bashrc for quick impersonation requests:
Python Script: Batch Access Requests
Bash Script: Auto-Request with Retry
JSON Output for Automation
Get request data in JSON format for processing:Output Formats
Alllist commands support multiple output formats: