When querying Users etc using the Azure ActiveDirectoryClient it does not seem possible to construct a expression that has the 'Contains' keyword eg
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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.