Guest User

Untitled

a guest
Mar 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. class IDM(User):
  2. idmclient = idm(settings.IDM_USER, settings.IDM_USER_PASS)
  3. groups = []
  4. for group in idmclient.getUser(samaccountname=super.username).get_groups():
  5. group = group.__dict__
  6. groups.append(group)
  7.  
  8. class Meta:
  9. proxy = True
  10. ordering = ('username', )
Add Comment
Please, Sign In to add comment