Skip to content

Instantly share code, notes, and snippets.

@KrE80r
Last active May 6, 2021 22:15
Show Gist options
  • Save KrE80r/e53bce9dc9b6561c8f822a080ae89fce to your computer and use it in GitHub Desktop.
Save KrE80r/e53bce9dc9b6561c8f822a080ae89fce to your computer and use it in GitHub Desktop.
#!/usr/bin/python2
from ipalib import api
api.bootstrap(context="exporter", debug=False)
api.finalize()
api.Backend.rpcclient.connect()
users = api.Command["user_find"](all=True)["result"]
for user in users:
print user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment