Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select fields cannot contain a filtered field when querying users in the graph explorer #2964

Open
dlynes opened this issue Jan 26, 2024 · 0 comments
Labels

Comments

@dlynes
Copy link

dlynes commented Jan 26, 2024

Describe the bug
It complains about a syntax error at '/any'

To Reproduce
Steps to reproduce the behavior:

  1. Copy and paste the following URL into graph explorer:
    https://graph.microsoft.com/v1.0/users?$select=userPrincipalName,accountEnabled,assignedLicenses&$filter=assignedLicenses/any(u:u/skuId eq fd249f8f-dd6a-48bd-981b-b2478377c7e3)
  2. Error "Possible error found in URL near: /any(u" appears, and 'Run query' button is disabled
  3. Remove ',assignedLicenses'
  4. 'Run query' re-enables itself
  5. Re-run the query
  6. Works fine
  7. Type in ',assignedLicenses' after ',accountEnabled' and before '&$filter='
  8. Displays 'Possible error found in URL near: /any(u' again, but 'Run query' button is not disabled
  9. Re-run the query
  10. Works fine

Expected behavior
Should have worked fine the first time without having to go through this hoop.

Screenshots
Error can be seen in the attached screenshot.

Desktop (please complete the following information):

  • Windows 11
  • Chrome
  • 121.0.6167.85 (Official Build) (64-bit)

Smartphone (please complete the following information):

  • didn't try on smartphone

Additional context
No additional context
Screenshot 2024-01-26 081812

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant