locked
Get the filtered activedirectoryclient.users from azure adfs using like RRS feed

  • Question

  • User1035898639 posted

    Hi,
    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. 

     ActiveDirectoryClient activeDirectoryClient = new ActiveDirectoryClient(serviceRoot,
                          async () => await GetTokenForApplication());
    
                   
                    var result0 = await activeDirectoryClient.Users
                     .Where(u => u.GivenName.Contains("sibeesh"))
                     .ExecuteAsync();
    
                    var result1 = await activeDirectoryClient.Users
                      .Where(u => SqlMethods.Like(u.DisplayName, "sib%"))
                      .ExecuteAsync();

    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

    Monday, March 7, 2016 10:10 AM

Answers