I try to use wazo_provd_client and wazo-confd-client but I find myself annoyed because I only have a self-signed certificate and the client has no option to skip the ssl verification.
Do you plan to add an option to bypass the ssl verification?
The username/password that you have used are for the wazo-auth-cli tool. This user does not have the necessary permission to list confd users.
You can use a user with the administrator rights or create a new one with more limited permissions.
to create a user myuser with password foobar wazo-auth-cli user create --password foobar myuser
The add the admin policy to that user wazo-auth-cli user add --policy wazo_default_admin_policy myuser
That should get you started with the authentication.
For your search you will want to add the tenant_uuid=<tenant_uuid> or recurse=True otherwise you will list only users from the master tenant which contains only system related resources.
# create user: run just once
wazo-auth-cli user create --password superpass test
wazo-auth-cli user add --policy wazo_default_admin_policy test
python
# create tocken
from wazo_auth_client import Client
c = Client('localhost', username='test', password='superpass', verify_certificate=False)
token_data = c.token.new('wazo_user', expiration=3600, session_type='mobile')
print(token_data['token'])
# list all user
from wazo_confd_client import Client
c = Client('localhost', port=9486, https=True, token=token_data['token'],verify_certificate=False)
users = c.users.list(recurse=True)
print(users)