Difference between revisions of "ZenDMD Tip - Audit Users"

From Zenoss Wiki
Jump to: navigation, search
(Created page with "On the master, `su zenoss` then `zendmd` <syntaxhighlight lang="python"> roleManager = dmd.acl_users.roleManager for user in dmd.ZenUsers.getUsers(): userId = user.getId(...")
 
m (Category)
 
Line 10: Line 10:
  
 
[[Category:Tips]]
 
[[Category:Tips]]
 
+
[[Category:ZenDMD]]
Best,
+
--Shane (Hackman238)
+

Latest revision as of 14:17, 20 November 2013

On the master, `su zenoss` then `zendmd`

roleManager = dmd.acl_users.roleManager
for user in dmd.ZenUsers.getUsers():
    userId = user.getId()
    userRoles = roleManager.getRolesForPrincipal(user)
    print userId, userRoles