code: def which_roles_can(self, name):
          
          targetPermissionRecords = AuthPermission.objects(creator=self.client, name=name).first()
          return [{'role': group.role} for group in targetPermissionRecords.groups]
docs: Which role can SendMail?