Office Scripts deleted when user account is deleted

Steve Feldman 21 Reputation points
2021-08-20T13:45:01.857+00:00

We have a previous employee who wrote and shared Office Scripts, which were housed in their OneDrive. The employee is not longer here, and their accunt is deleted. How do we get the Office Scripts for ruining and editing

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,720 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,198 questions
0 comments No comments
{count} votes

Accepted answer
  1. Emily Hua-MSFT 27,601 Reputation points
    2021-08-23T01:26:33+00:00

    @Steve Feldman

    Based on my research, please check the days OneDrive files retention that administrator set for deleted users.

    • The default is 30 days, if the user was deleted within this times, you can restore the user and all their data from the Microsoft 365 admin center.
      For more, please refer to "Restore a user", and "Step 4 - Give another employee access to OneDrive and Outlook data".
    • But if the user was deleted more than these days, the user will no longer appear in the Microsoft 365 admin center, and please try to use PowerShell to restore the OneDrive. If you could restore the OneDrive to an active state, then you may assign an administrator to the OneDrive to access the needed data.
      For more, your may refer to "Restore a deleted OneDrive",

    As this issue involves admin center which is not supported on Q&A forum currently.
    To better help you, I would also sugget you post a new thread on Microsoft Answers community --- Microsoft 365 or Office 365 for admins.
    Thanks for your understanding.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.


0 additional answers

Sort by: Most helpful