OneDrive search

Richard Simon 0 Reputation points
2024-11-11T13:20:03.0133333+00:00

Can you still only search the current level in OneDrive web?

I work at an MSP and I need to search archived projects (they were their own SharePoint sites originally but have since been moved under a single user's OneDrive once they got archived for reasons) for a client for some particular content.

Due to our use of JIT and CA enforcements within the client tenant syncing the location to OneDrive desktop is not an option - at least not without a lot of mucking around and potentially being denied by the client themselves due to various compliance they need to adhere to about data security.

Anyone got any ideas of an alternative? PowerShell even?

I did find this: https://github.com/junecastillote/SPO-File-Search but I don't have PS7.x available for use which is listed as a requirement.

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,164 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,898 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yanli Jiang - MSFT 27,161 Reputation points Microsoft Vendor
    2024-11-12T08:38:59.4266667+00:00

    Hi @Richard Simon ,

    Welcome to Q&A form!

    According to your description, it seems that the methods you can use are limited. The method in the blog is currently the best method. If you cannot use PS7.x, as a workaround, you can try the following method:

    1. First grant yourself permission to all OneDrive sites in the tenant:

    https://www.sharepointdiary.com/2017/04/gain-admin-permission-to-onedrive-for-business-sites-using-powershell.html#h-access-any-user-s-onedrive-site-as-a-global-administrator

    Non-official, just for reference.

    1. Then obtain the URL list of all OneDrive sites in the tenant:

    https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls

    1. Enter the OneDrive site through the URL to search for files.

    Or, only enter its site to search when someone needs to search.

    Although in my opinion, this is a very general method. . .

    Good day!



    If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.