code: def add_member(self, user, permissions, api=None):
          
          api = api or self._API
          return AutomationMember.add(
              automation=self.id, user=user, permissions=permissions, api=api
          )
docs: Add member to the automation
          :param user: Member username
          :param permissions: Member permissions
          :param api: sevenbridges Api instance
          :return: AutomationMember object