Skip to content

CUCM 12.5 #29

Answered by bradh11
Letshadow asked this question in Q&A
May 30, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@Letshadow - There is a method called ucm.get_user() in addition to ucm.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):

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)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Letshadow
Comment options

Answer selected by bradh11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants