title: Microsoft Graph - Memberof fields are null
body: <p>I've trying to get the groups a user is a member of, in C#. To do so i've been using the /memberOf endpoint, like so:</p>
  <pre class="lang-cs prettyprint-override"><code>public async Task&lt;IUserMemberOfCollectionWithReferencesPage&gt; Test()
  {
      var graphClient = GetGraphClient(config);
  
      return await graphClient
          .Users[&quot;user@contoso.com&quot;]
          .MemberOf
          .Request()
          .GetAsync();
  }
  </code></pre>
  <p>The get graph client function is:</p>
  <pre class="lang-cs prettyprint-override"><code>public static GraphServiceClient GetGraphClient(Config config)
  {
      var graphClient = new GraphServiceClient(new DelegateAuthenticationProvider((requestMessage) =&gt;
      {
  
          // get an access token for Graph
          var accessToken = GetAccessToken(config).Result;
  
          requestMessage
              .Headers
              .Authorization = new AuthenticationHeaderValue(&quot;bearer&quot;, accessToken);
  
          return Task.FromResult(0);
      }));
  
      return graphClient;
  }
  </code></pre>
  <p>The problem is that the response is just:</p>
  <pre><code>[
  {
     &quot;deletedDateTime&quot;:null,
     &quot;id&quot;:&quot;48215c29-5442-4fbe-b6b4-ce3e1b09157a&quot;,
     &quot;oDataType&quot;:&quot;#microsoft.graph.group&quot;,
     &quot;additionalData&quot;:{
        &quot;deletedDateTime&quot;:null,
        &quot;classification&quot;:null,
        &quot;createdDateTime&quot;:null,
        &quot;creationOptions&quot;:[
  
        ],
        &quot;description&quot;:null,
        &quot;displayName&quot;:null,
        &quot;expirationDateTime&quot;:null,
        &quot;isAssignableToRole&quot;:null,
        &quot;mail&quot;:null,
        &quot;mailEnabled&quot;:null,
        &quot;mailNickname&quot;:null,
        &quot;membershipRule&quot;:null,
        &quot;membershipRuleProcessingState&quot;:null,
        &quot;onPremisesDomainName&quot;:null,
        &quot;onPremisesLastSyncDateTime&quot;:null,
        &quot;onPremisesNetBiosName&quot;:null,
        &quot;onPremisesSamAccountName&quot;:null,
        &quot;onPremisesSecurityIdentifier&quot;:null,
        &quot;onPremisesSyncEnabled&quot;:null,
        &quot;preferredDataLocation&quot;:null,
        &quot;preferredLanguage&quot;:null,
        &quot;renewedDateTime&quot;:null,
        &quot;resourceBehaviorOptions&quot;:[
  
        ],
        &quot;resourceProvisioningOptions&quot;:[
  
        ],
        &quot;securityEnabled&quot;:null,
        &quot;securityIdentifier&quot;:null,
        &quot;theme&quot;:null,
        &quot;visibility&quot;:null
     }
  }
  ]
  </code></pre>
  <p>The app has the following permissions:</p>
  <pre><code>Directory.AccessAsUser.All
  User.Read.All
  User.ReadWrite.All
  UserAuthenticationMethod.Read.All
  UserAuthenticationMethod.ReadWrite.All
  Directory.Read.All
  Directory.ReadWrite.All
  Group.Read.All
  GroupMember.Read.All
  User.Read
  </code></pre>
  <p>Every other endpoint im using, the delta, user, subscriptions, work as intended but for unknow reasons they are just null with /memberOf.
  I really hope you guys can help, with what im doing wrong, because i've been banging my head against a wall for way too long :).</p>
  <p>Thanks in advance.</p>