Skip to content

device action - lock/unlock and account lock/unlock commands and sdk examples#184

Open
mtyagi-ks wants to merge 1 commit into
device-management-commandsfrom
device-management-commands-int
Open

device action - lock/unlock and account lock/unlock commands and sdk examples#184
mtyagi-ks wants to merge 1 commit into
device-management-commandsfrom
device-management-commands-int

Conversation

@mtyagi-ks

Copy link
Copy Markdown

Extend device management with lock, unlock, account-lock, and
account-unlock actions to match Commander device-user-action support.

SDK:

  • Add lock_user_devices, unlock_user_devices, account_lock_user_devices,
    and account_unlock_user_devices in device_management.py
  • Reuse existing _execute_device_action() with DA_LOCK, DA_UNLOCK,
    DA_DEVICE_ACCOUNT_LOCK, and DA_DEVICE_ACCOUNT_UNLOCK action types

CLI:

  • Add device-lock, device-unlock, device-account-lock, and
    device-account-unlock commands
  • Refactor remove/logout to shared _run_device_action_command() helper
  • Register new commands in register_commands.py

Examples:

  • Add lock_device.py, unlock_device.py, account_lock_device.py, and
    account_unlock_device.py under examples/sdk_examples/device_management/

Tests:

  • Add unit tests for lock_user_devices and account_unlock_user_devices

@adeshmukh-ks adeshmukh-ks requested review from amangalampalli-ks, pvagare-ks and sali-ks and removed request for amangalampalli-ks June 16, 2026 04:59
def __init__(self):
parser = argparse.ArgumentParser(
prog='device-account-unlock',
description='Unlock one or more devices for the current user',

@sali-ks sali-ks Jun 16, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change description this to "Device Account unlock...

parser = argparse.ArgumentParser(
prog='device-unlock',
description='Unlock one or more devices for the current user',
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

        description='Device Unlock one or more devices for the current user',

@adeshmukh-ks adeshmukh-ks self-requested a review June 17, 2026 06:16
@adeshmukh-ks adeshmukh-ks changed the title device lock/unlock and account lock/unlock commands and sdk examples device action - lock/unlock and account lock/unlock commands and sdk examples Jun 17, 2026
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