Skip to content

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

Closed

Description

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

Activity

  1. darrelmiller commented on Mar 15, 2020

    @darrelmiller
    Contributor
  2. mattgrif commented on Mar 16, 2020

    @mattgrif
    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.

  3. peombwa commented on Mar 17, 2021

    @peombwa
    Member

    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.
  4. added this to the Post GA milestone on Mar 17, 2021
  5. removed this from the Backlog milestone on May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions