title: How to get groups that user belong to?
body: <p>Using Graph Service, I have tried to get list of groups that user belong to. Here is my sample code:</p>
  
  <pre><code>var userMemberOf = null;
  var userMemberGroups = null;
  const GraphService = require('graph-service');
  const ClientCredentials = require('client-credentials');
  
  const tenant = 'my-company.com';
  const clientId = '0b13aa29-ca6b-42e8-a083-89e5bccdf141';
  const clientSecret = 'lsl2isRe99Flsj32elwe89234ljhasd8239jsad2sl=';
  
  const credentials = new ClientCredentials(tenant, clientId, clientSecret);
  
  const service = new GraphService(credentials);
  
  service.get('/users/tnguyen482@my-company.com/memberOf').then(response =&gt; {
      userMemberOf = response.data;
  });
  
  var settings = {
      "securityEnabledOnly": true
  }
  service.post('/users/tnguyen482@my-company.com/getMemberGroups', settings).then(response =&gt; {
      userMemberGroups = response.data;
  });
  </code></pre>
  
  <p>The data return from both get &amp; post method was an empty list. I have tried another user id but the result is the same. Am I correct when using method memberOf and getMemberGroups to get list of groups that user belong to? Does my sample code correct?</p>