Skip to main content

PyWorkspaceOneUEM is a Python API library for VMware Workspace ONE UEM formerly known as AirWatch

Project description

PyWorkspaceOneUEM

=========

PyWorkspaceOneUEM is a Python API library for VMware Workspace ONE UEM formerly known as AirWatch

Credit

A huge credit goes to John Richrads @jprichards and his project PyVMwareAirWatch from which a majority of the codebase was adopted.

Usage

example.py

from pyws1uem.client import WorkspaceOneAPI

wso = WorkspaceOneAPI(env='your_environment_url',
                    apikey='your_api_token_key',
                    username='username',
                    password='password')


# Get the OG ID for a specified Group ID
wso.groups.get_id_from_groupid(groupid='testog')

# Create a Child OG for a specified Parent OG Group ID (Type/Name optional)
wso.groups.create_child_og(parent_groupid='testog', groupid='newog', og_type='Container', name='newog')

# Get a Device ID via an alternate device identifier
wso.devices.get_id_by_alt_id(serialnumber='C09Z1TC8FJWT')

Supported Functionality

  • Devices
    • Search devices with specific criteria
      • V1 Endpoint criteria > user, model, platform, lastseen, ownership, lgid(OrganizationGroup ID), compliantstatus, seensince
      • V2 Endpoint criteria > user, model, platform, lastseen, ownership, lgid, compliance_status, seen_since
      • V3 Endpoint criteria > user, model_identifier, device_type, last_seen, ownership, organization_group_uuid, compliance_status, seen_since
    • Return the full device details by an Extensive Device Search
    • Get Device Details by Alt ID (Macaddress, Udid, Serialnumber, ImeiNumber, EasId)
    • Get Device ID by Alt ID (Macaddress, Udid, Serialnumber, ImeiNumber, EasId)
    • Clear Device Passcode
    • Get Device Details by Device ID
    • Send Commands To devices via Device ID or by Alt ID
    • Get Device FileVualt Recover Key
    • Get Security Info Sample by Device ID or Alt ID
    • Get Bulk Security Info Sample
    • Switch device From Staging User to End User
    • Get Network info Sample by Device ID
    • Delete a Device by Device ID
    • Delete a Device Custom Attribute by Device ID or Alternate ID
    • Get a list of device enrollment tokens for a given Group ID
    • Create a device enrollment token in a given OG
  • Tags
    • Add a Tag to a Device
    • Remove a Tag from a Device
    • Check if a tag is already applied
  • Users
    • Search for users by Username, Firstname, Lastname, Email, OrganizationGroupID, or Role
    • Delete user
  • Groups
    • Get OG ID from Group ID
    • Create Customer type OG (On-Prem only)
    • Create Child OG
    • Get UUID from OG ID

Requirements

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyws1uem-0.0.10.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyws1uem-0.0.10-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file pyws1uem-0.0.10.tar.gz.

File metadata

  • Download URL: pyws1uem-0.0.10.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7

File hashes

Hashes for pyws1uem-0.0.10.tar.gz
Algorithm Hash digest
SHA256 8817ac95432cb9fc751959f4fa38501f65e86a8cd25f8789124d109b559fcf8c
MD5 f44f0cc6a5f101637ed70dc5bf158e6e
BLAKE2b-256 4809a2a1a75f62391b8c8d807109b97414c713515a83143e0985786502be220e

See more details on using hashes here.

File details

Details for the file pyws1uem-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: pyws1uem-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7

File hashes

Hashes for pyws1uem-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 a08bd3d41f621744a2c93d2240050de959a6657717f058fbb45a7604204a4d6d
MD5 2eb7649fbb315ae670c34d8beac9b4cd
BLAKE2b-256 51eaeebd31cafb876fb8df99f1b1567e38652103273a209a812fe56428fb0d4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page