19 lines
431 B
Python
19 lines
431 B
Python
import config
|
|
import cloud
|
|
import cloudad
|
|
|
|
c = cloud.cloud(config.API_TOKEN)
|
|
a = cloudad.AD()
|
|
#r = a.getUserInfo("M-kab4", "sAMAccountName", ['sAMAccountName', "cn", "mail", "Enabled"])
|
|
#print(a.isDisabled("Esina.Svetlana1", "sAMAccountName"))
|
|
|
|
for r in c.getUserList():
|
|
print(r["name"], a.isDisabled(r["name"], "sAMAccountName"), a.isEnabled(r["name"], "sAMAccountName"))
|
|
|
|
|
|
# print(c.getVMList())
|
|
|
|
# print(c.getUserList())
|
|
|
|
|
|
|