title: Azure AD Graph API: Unable to use StartsWith under Any function
body: <p>I would like to ask on how to apply StartsWith in Any function when querying in Azure AD Graph Explorer.</p>
  <p>Based on the <a href="https://docs.microsoft.com/en-us/previous-versions/azure/ad/graph/howto/azure-ad-graph-api-supported-queries-filters-and-paging-options" rel="nofollow noreferrer">documentation</a>, below is the sample when querying multi-valued properties.</p>
  <pre><code>https://graph.windows.net/contoso.com/users?$filter=signInNames/any(x:x/value eq 'joe@example.com')&amp;api-version=1.6
  </code></pre>
  <p>However, the sample uses &quot;<strong>eq</strong>&quot; which means it is doing an Exact match.</p>
  <p>Is it possible if we can perform <strong>StartsWith</strong> in this scenario?</p>
  <p>I already check this <a href="https://www.odata.org/getting-started/basic-tutorial/#lambda" rel="nofollow noreferrer">tutorial</a> but I got the error as shown below.</p>
  <p><strong>Getting all SignNames with &quot;test&quot;</strong></p>
  <pre><code>https://graph.windows.net/myorganization/users?$filter=signInNames/any(x:x.startswith(x,'test'))
  </code></pre>
  <p><strong>Error:</strong></p>
  <pre><code>&quot;value&quot;: &quot;An unknown function with name 'x.startswith' was found. This may also be a key lookup on a navigation property, which is not allowed.&quot;
  </code></pre>