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

Get-MgDrive -Search doesn't appear to do anything #133

Closed
mattgrif opened this issue Mar 13, 2020 · 3 comments · Fixed by #1324
Closed

Get-MgDrive -Search doesn't appear to do anything #133

mattgrif opened this issue Mar 13, 2020 · 3 comments · Fixed by #1324

Comments

@mattgrif
Copy link

mattgrif commented Mar 13, 2020

No matter what I search unless it throws an error due to . being invalid character it returns the same 2 document libraries for the root SharePoint Site Collection (Shared Documents and PreservationHoldLibrary)
AB#7436

@ghost ghost added the ToTriage label Mar 13, 2020
@darrelmiller
Copy link
Contributor

@mattgrif
Copy link
Author

Do you have the same problem if you try making the query in Graph Explorer?

Here is a sample query in Graph Explorer:
https://developer.microsoft.com/en-us/graph/graph-explorer/preview?request=me/drive/root/search(q='finance')?select=name,id,webUrl&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com&requestBody=e30=

I searched the term IS and through Graph explorer I receive more then 20 results - the command just returns the Documents and Preservation Hold Libraries.

@ddyett ddyett added the promote label Jan 11, 2021
@peombwa
Copy link
Member

peombwa commented Mar 17, 2021

This is an SDK bug. We are missing the following paths in our OpenAPI docs:

  • '/drives/{drive-id}/root/microsoft.graph.search(q='{q}')' => Search-MgDrive.
  • '/groups/{group-id}/drive/root/microsoft.graph.search(q='{q}')' => Search-MgGroupDrive.
  • '/sites/{site-id}/drive/root/microsoft.graph.search(q='{q}')' => Search-MgSiteDrive.
  • '/users/{user-id}/drive/root/microsoft.graph.search(q='{q}')' => Search-MguserDrive.

@peombwa peombwa self-assigned this Mar 17, 2021
@peombwa peombwa added this to the Post GA milestone Mar 17, 2021
@peombwa peombwa modified the milestones: Post GA, Backlog May 5, 2021
@maisarissi maisarissi removed this from the Backlog milestone May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants