title: Gsuite python client - Insert members to a group
body: <p>I'm trying to insert members into a group in Gsuite. But I am not succeeding. The script returns no error or adds member to the group.</p>
  
  <p>That's my code and these are the parameters add_member_to_group(member='someone@domain.com', groupKey='my-alias@domain.com'):</p>
  
  <p>PS: I can list all members of 'my-alias@domain.com'.</p>
  
  <pre class="lang-py prettyprint-override"><code>    def add_member_to_group(self, member, groupKey):
          log.info('Adding member {} to group {}'.format(member, groupKey))
          if isinstance(member, dict):
              body = {
                  'kind': "admin#directory#member",
                  'role': member['role'],
                  'type': member['type'],
                  'email': member['email']
              }
          else:
              body = {
                  'kind': "admin#directory#member",
                  'role': 'MEMBER',  # OWNER, MANAGER, MEMBER
                  'email': member
              }
          req = self.members.insert(body=body, groupKey=groupKey)
  </code></pre>
  
  <p>Thank you</p>