Open BobSquarePants opened 3 years ago
I'm having the exact same issue... I've tried two ways:
Writing the name of the group: user.is_member_of ("group")
Creating a pyad group object and use that... group = pyad.adgroup.ADGroup.from_cn("group") user.is_member_of(group)
Always false...
Same issue here for me:
>>> group.get_members() [<ADUser 'CN=one o. one,CN=Users,DC=example,DC=com'>]
>>> user1 <ADUser 'CN=one o. one,CN=Users,DC=example,DC=com'>
>>> user1.is_member_of(group) False
any news for the solution for this problem ? Tks
user.is_member_of(group)
return always false :/evan after succesefully added user to group trough
group.add_members(user)