0

When querying Users etc using the Azure ActiveDirectoryClient it does not seem possible to construct a expression that has the 'Contains' keyword e.g.

activeDirectoryClient.Users.Where(u => u.Surname.Contains(searchString)) .ExecuteAsync()

I can successfully use u.Surname.StartsWith or EndsWith.

Is this supported? If not is there an alternative?

Thanks.

gman7911
  • 45
  • 1
  • 5

1 Answers1

0

Contains is generally not supported by the Graph API itself. And there is no alternative. It is strange that EndsWith works.

You can find more about supported queries and filters on the following official documentation: https://msdn.microsoft.com/en-us/library/azure/dn727074.aspx

astaykov
  • 30,133
  • 3
  • 63
  • 82
  • 1
    Thanks for the confirmation. This is not critical functionality but would have been useful. EndsWith is not supported, my mistake. – gman7911 Jun 20 '15 at 16:34