For the complete documentation index, see llms.txt. This page is also available as Markdown.

Device Approve Commands

Approve Cloud SSO Devices.

Usage:

device-approve [--options] [device ...]

Parameters:

User's email or device ID to approve or blank to see a list of pending devices

List of Supported Commands

Device Approval Requests List Command

DotNet CLI

Usage:

enterprise-device [options] [command] [match]

Aliases: ed

Sub Commands:

  • list - List device approval requests (default)

Options:

  • -f, --force - Force reload enterprise data

  • --auto-approve <true|false> - Set auto-approve policy

Match Patterns:

  • all - Match all pending requests

  • email - User email address

  • device-id - Specific device ID

Example:

# List pending device approvals
enterprise-device list
ed list

# Set auto-approve policy
enterprise-device --auto-approve true
DotNet SDK

Function: DeviceApprovalRequests

  public IEnumerable<DeviceRequestForAdminApproval> DeviceApprovalRequests => _deviceApprovals.Entities;

Example:

var enterpriseData = new EnterpriseData();
var deviceApproval = new DeviceApprovalData();
// ... initialize enterprise loader with deviceApproval plugin ...

var pendingDevices = deviceApproval.DeviceApprovalRequests;
foreach (var device in pendingDevices)
{
    Console.WriteLine($"User ID: {device.EnterpriseUserId}, Device: {device.DeviceName}");
}
PowerCommander

Command: Get-PendingKeeperDeviceApproval

Flags:

Flag
Description

-Reload

Reload the list of pending device approvals from the server (switch)

-Format

Output format: table, csv, or json (default: table)

-Output

File path to write output to (required for csv and json formats)

Example:

Example for Json Output:

Python CLI

Command: device-aprove

Parameter:

device - User email or device ID (optional, can be repeated)

Options

  • -r, --reload - Reload list of pending approval requests

  • --trusted-ip - Approve only devices coming from a trusted IP address

  • --format - Output format: json, table, csv

  • --output - Output filename

Example:

Python SDK

Function:

Device Approval Request - Approve

Approves pending device approval requests. You can specify devices by device ID (partial match supported) or user email. If no match is specified, all pending devices will be approved.

DotNet CLI

Usage:

Aliases: ed

Sub Commands:

  • approve - Approve device(s)

Options:

  • -f, --force - Force reload enterprise data

  • --auto-approve <true|false> - Set auto-approve policy

Match Patterns:

  • all - Match all pending requests

  • email - User email address

  • device-id - Specific device ID

Example:

DotNet SDK

Not Supported

PowerCommander

Command: Approve-KeeperDevice

Flags:

Flag
Description

-Match

Device ID (partial match supported) or user email to approve. If not specified, all pending devices will be approved (Position 0)

-Reload

Reload the list of pending device approvals before processing (switch)

-TrustedIp

Approve devices from a trusted IP address (switch, currently not implemented)

-WhatIf

Preview what would happen without actually approving devices (switch, supported via SupportsShouldProcess)

-Confirm

Prompt for confirmation before approving devices (switch, supported via SupportsShouldProcess)

Example:

Python CLI

Command: device-aprove --approve <Device_UID>

Parameter:

device - User email or device ID (optional, can be repeated)

Options

  • -a, --approve - Approve user devices

  • --trusted-ip - Approve only devices coming from a trusted IP address

Example:

Python SDK

Function:

Device Approval Request - Deny

Denies pending device approval requests. You can specify devices by device ID (partial match supported) or user email. If no match is specified, all pending devices will be denied.

DotNet CLI

Usage:

Aliases: ed

Sub Commands:

  • decline - Decline device(s)

Options:

  • -f, --force - Force reload enterprise data

  • --auto-approve <true|false> - Set auto-approve policy

Match Patterns:

  • all - Match all pending requests

  • email - User email address

  • device-id - Specific device ID

Example:

DotNet SDK

Not Supported

PowerCommander

Command: Deny-KeeperDevice

Flags:

Flag
Description

-Match

Device ID (partial match supported) or user email to deny. If not specified, all pending devices will be denied (Position 0)

-Reload

Reload the list of pending device approvals before processing (switch)

-WhatIf

Preview what would happen without actually denying devices (switch, supported via SupportsShouldProcess)

-Confirm

Prompt for confirmation before denying devices (switch, supported via SupportsShouldProcess)

Example:

Python CLI

Command: device-approve --deny <Device_UID>

Parameter:

device - User email or device ID (optional, can be repeated)

Options

  • -d, --deny - Deny user devices

Example:

Python SDK

Function:

Last updated