ZenDMD Tip - Audit Users

From Zenoss Wiki
Revision as of 14:17, 20 November 2013 by Crouthamela (Talk | contribs)$7

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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