title: Get the filtered activedirectoryclient.users from azure adfs using like
body: <p>I am trying to get few users from Azure ADFS within my domain. I am able to get all of my users from my integrated Office 365. But my requirement is to get the filtered user lists. Can we do something like below, I have tried. But it doesn't return anything even if I have few users with that. </p>
  
  <pre><code>ActiveDirectoryClient activeDirectoryClient = new ActiveDirectoryClient(serviceRoot,
                        async () =&gt; await GetTokenForApplication());
  var result0 = await activeDirectoryClient.Users
                .Where(u =&gt; u.GivenName.Contains("sibeesh"))
                .ExecuteAsync();
  
  var result1 = await activeDirectoryClient.Users
                    .Where(u =&gt; SqlMethods.Like(u.DisplayName, "sib%"))
                    .ExecuteAsync();
  </code></pre>
  
  <p>And also how can we get the users from other domains which we have in our ADFS? How can we group those users accordingly. I am totally new to configuring ADFS, any help is much appreciated. Thanks in advance. </p>