I am using PyGithub. g=Github(token) if hasattr(): g._ldap_dg._ldap_dn = g._ldap_dn.append(ou="group-ukraine",cn="PAL",o="Pic") else g._ldap_dn.append(ou="group-ukraine",cn="PAL",o="Pic") org=g.get_organization("group-ukraine") repo=org.get_repo("sike") self.developer_teams=repo.get_teams() for team in self.developer_teams: self.team._ldap_dn = team._ldap_dn.append(ou="group-ukraine",cn="PAL",o="Pic") I got AttributeError: 'Team' object has no attribute '_ldap_dn' get_teams returns PaginatedList but that should not be the issue. How to add _ldap_dn to my teams? Continue reading...