-
I have tried to obtain information from a user in the CUCM of cisco labs DEVNET, I was not successful,
would it affect this file if I understand correctly it affects this file |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@Letshadow - There is a method called To achieve what it looks like you are attempting to do (pull details on a single user), i would recommend using the from ciscoaxl import axl
from decouple import config
cucm = config("CUCM_PUBLISHER")
username = config("CUCM_AXL_USERNAME")
password = config("CUCM_AXL_PASSWORD")
version = config("CUCM_VERSION")
ucm = axl(username=username, password=password, cucm=cucm, cucm_version=version)
get_user = ucm.get_user("admin")
print(get_user)
|
Beta Was this translation helpful? Give feedback.
@Letshadow - There is a method called
ucm.get_user()
in addition toucm.get_users()
.To achieve what it looks like you are attempting to do (pull details on a single user), i would recommend using the
ucm.get_user()
method instead. below is a known good working example (leveraging python-decouple library to pull in os environment variables):