Usage:
( You might need to replace "python3" for "python3" )
python3 -m wbx_admin_utils [options] command subcommand [parameters]
python3 -m wbx_admin_utils help commands # shows the full list of available commmands
Commands:
help
commands : display list of available commands
group
list : list all groups in admin org
list-users <group_id> : list user ids (max 500) in given group id
add-user <email|csvFile> <group_id> : add user in given group id
remove-user <email|csvFile> <group_id> : remove user from given group id
user
details <email|user_id> : print user details in json
tokens <email|csvFile> : list user(s) access token
reset <email|csvFile> : reset user(s) access token
activate <Yes|No> <email|csvFile> : activate (Yes) or deactivate (No) user(s)
delete <email|csvFile> : delete user(s)
get-vm <email> : dump user voicemail settings in json format
add-vm <email|csvFile> <base user email> : set user(s) voicemail options based on another user's voicemail settings
co
list-messages <email, 'options'> : list messages sent by a user
list-space-members <id> : list menbers in space
Options:
- -t <token> Adds access token as a parameter. Will be read from AUTH_BEARER Env Variable by defaut. Yyou can get your personal access token from webex developper
- -d <debugLevel> from 0 to 3 (most verbose). Default is 2 (info level)
co (compliance officer) commands
- list-messages option format is in json format as per the 'event' API command
- all results are displayed in .CSV format
Examples:
# List user groups in CH Org
python3 -m wbx_admin_utils group list
# List users in group id
python3 -m wbx_admin_utils group list-users ``<groupid>``
# Add or remove users in specified group id
python3 -m wbx_admin_utils group add-user user1@customer.com ``<groupid>``
python3 -m wbx_admin_utils group remove-user /tmp/users.csv ``<groupid>``
# Reset (force log-out) user access tokens
python3 -m wbx_admin_utils user reset /tmp/users.csv
# Activate or deactivate users
python3 -m wbx_admin_utils user activate Yes user1@customer.com
python3 -m wbx_admin_utils user activate No /tmp/users.csv
# list messages sent by user (default from = 30 days ago, default to = today)
python3 -m wbx_admin_utils co list-messages user1@customer.com > report.csv
python3 -m wbx_admin_utils co list-messages user1@customer.com '{"from":"2022-10-20T00:00:00.000Z", "to":"2023-10-20T00:00:00.000Z" }'
# list members of a space
python3 -m wbx_admin_utils co list-space-members <spaceid>
CSV input file format:
email, comments
user1@customer.com, some optinal info about user1
user2@customer.com, some optinal info about user1
The first column is currenlty processed and must be titled 'email' other columns are optional and ignored.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wbx_admin_utils-1.4.1.tar.gz
(10.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wbx_admin_utils-1.4.1.tar.gz.
File metadata
- Download URL: wbx_admin_utils-1.4.1.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07eb24be5a0b74c9c1ee507b90344bae7ba8c281f640822bf859aac4b446c8f0
|
|
| MD5 |
6a5db778463fc5069f8075d3d2f4dcf5
|
|
| BLAKE2b-256 |
ca83bdb6afea532869dc838cca487e74982264835f3c246c3fc5ee59b40261d4
|
File details
Details for the file wbx_admin_utils-1.4.1-py3-none-any.whl.
File metadata
- Download URL: wbx_admin_utils-1.4.1-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fa8b4989f78f817252ae40b2ff4196c79cb5b6eadd49a24d743161981291dc7
|
|
| MD5 |
862c69e6ea38f5a5ccac68b61931e1fc
|
|
| BLAKE2b-256 |
3feb9ab73c61c137d28683265585b1878238b8e966153fb4e4a699dc006ae025
|