OneDrive restored site scope

%3CLINGO-SUB%20id%3D%22lingo-sub-241227%22%20slang%3D%22en-US%22%3EOneDrive%20restored%20site%20scope%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241227%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20one%20of%20our%20SPO%20Tenant%2C%20we%20had%20a%20request%20to%20restore%20the%20deleted%20Onedrive%20account%20of%20a%20deleted%20User%20and%20grand%20Admin%20permission%20to%20the%20account%20for%20an%20existing%20user.%20We%20restored%20using%20the%20commands%20in%20the%20below%20article.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fonedrive%2Frestore-deleted-onedrive%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fonedrive%2Frestore-deleted-onedrive%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20the%20request%20was%20complete.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20the%20original%20user's%20account%20is%20deleted%2C%20the%20Timer%20job%20to%20delete%20the%20Restored%20Onedrive%20will%20not%20start.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20would%20like%20to%20know%20how%20long%20the%20restored%20Onedrive%20account%20will%20remain%20not%20deleted%20or%20will%20be%20there%20some%20TimerJob%20in%20SPO%20to%20remove%20the%20Orphaned%20Onedrive%20account.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-241227%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-241828%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20restored%20site%20scope%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241828%22%20slang%3D%22en-US%22%3EOh%2C%20then%20by%20default%2C%20%3CBR%20%2F%3EOnce%20a%20user%20is%20deleted%2C%20then%20the%20users%20%22Onedrive%22%20is%20marked%20for%20deletion.%20Default%20is%2030days.%20So%2C%20depending%20on%20when%20you%20deleted%20the%20user%2C%20you%20have%2030%20days%20to%20get%20in%20there%20and%20get%20all%20the%20users%20data%20out%20of%20that%20users%20Onedrive%20library.%20%3CBR%20%2F%3E%3CBR%20%2F%3ENow%2C%20you%20are%20saying%2C%20you%20have%20used%20PowerShell%20to%20restore%20that%20users%20site%2C%20and%20you%20assigned%20a%20different%20Site%20Collection%20Admin%20to%20that%20site%20collection.%20Are%20you%20want%20to%20know%20how%20long%20this%20site%20collection%20will%20stay%20there%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20you%20might%20already%20know%2C%20once%20you%20restore%20a%20users%2C%20the%20users%20OneDrive%20will%20restore%2C%20but%20you%20are%20saying%20that%20you%20did%20not%20restore%20the%20user%2C%20you%20used%20PowerShell%20to%20just%20restore%20the%20site%20collection.%3CBR%20%2F%3E%3CBR%20%2F%3EWhy%20dont%20you%20just%20restore%20it%2C%20then%20move%20the%20files%20out%20of%20it%2C%20put%20it%20in%20SharePoint%20or%20something%20and%20then%20you%20don't%20have%20to%20worry%20about%20that%20other%20users%20Restored%20Site%20Collection.%3CBR%20%2F%3EBut%2C%20I%20would%20think%2C%20once%20you%20restore%20the%20site%20collection%2C%20and%20you%20have%20assigned%20a%20new%20site%20collection%20admin%20to%20it%2C%20then%20it%20will%20stay%20%2C%20as%20long%20as%20that%20new%20Site%20Collection%20Admin%20is%20active.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20just%20think%20there%20are%20easier%20ways%20to%20do%20what%20your%20trying%20to%20do.%20Since%20the%20only%20files%20in%20the%20users%20OneDrive%20should%20of%20been%20the%20users%20own%20Personal%20files%2C%20you%20could%20just%20move%20them%20to%20a%20new%20SharePoint%20library%20and%20not%20worry%20about%20the%20restored%20site%20collection%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20yea%2C%20I%20think%20that%20answers%20your%20question%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-241523%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20restored%20site%20scope%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241523%22%20slang%3D%22en-US%22%3EHi%20David%2C%3CBR%20%2F%3EThanks%20for%20the%20reply.%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20don't%20want%20the%20user's%20profile%2Faccount%20to%20be%20restored%2C%20as%20user%20is%20not%20a%20part%20of%20the%20organization.%20We%20would%20like%20to%20know%20how%20long%20the%20Restored%20OneDrive%20Site%20Collection%20exist.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-241292%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20restored%20site%20scope%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241292%22%20slang%3D%22en-US%22%3E%3CP%3EAs%20for%20the%20timerjob%2C%20it%20should%20run.%20I%20am%20not%20sure%20on%20the%20time%20for%20it%20to%20run%20but%20I%20do%20know%20some%20timerjobs%20only%20run%20once%20ever%207%20days.%20I%20am%20not%20sure%20about%20this%20one%20but%20Ill%20look%20around%20to%20see%20what%20i%20can%20see%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-241291%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20restored%20site%20scope%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241291%22%20slang%3D%22en-US%22%3EThe%20key%20unknown%20information%20missing%20here%20is%20%2C%20how%20long%20was%20this%20user%20deleted%3F%20There%20are%20many%20articles%20on%20here%20about%20restoring%20deleted%20users.%20%3CBR%20%2F%3E%3CBR%20%2F%3EOnce%20you%20restore%20the%20user%2C%20the%20OneDrive%20should%20reconnect%20automatically%2C%20as%20long%20as%20the%20users%20profile%20was%20still%20in%20a%20soft%20delete%20stage%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

In one of our SPO Tenant, we had a request to restore the deleted Onedrive account of a deleted User and grand Admin permission to the account for an existing user. We restored using the commands in the below article.

 

https://docs.microsoft.com/en-us/onedrive/restore-deleted-onedrive

 

And the request was complete.

 

As the original user's account is deleted, the Timer job to delete the Restored Onedrive will not start.

 

We would like to know how long the restored Onedrive account will remain not deleted or will be there some TimerJob in SPO to remove the Orphaned Onedrive account.

4 Replies
Highlighted
The key unknown information missing here is , how long was this user deleted? There are many articles on here about restoring deleted users.

Once you restore the user, the OneDrive should reconnect automatically, as long as the users profile was still in a soft delete stage
Highlighted

As for the timerjob, it should run. I am not sure on the time for it to run but I do know some timerjobs only run once ever 7 days. I am not sure about this one but Ill look around to see what i can see

Highlighted
Hi David,
Thanks for the reply.

We don't want the user's profile/account to be restored, as user is not a part of the organization. We would like to know how long the Restored OneDrive Site Collection exist.
Highlighted
Oh, then by default,
Once a user is deleted, then the users "Onedrive" is marked for deletion. Default is 30days. So, depending on when you deleted the user, you have 30 days to get in there and get all the users data out of that users Onedrive library.

Now, you are saying, you have used PowerShell to restore that users site, and you assigned a different Site Collection Admin to that site collection. Are you want to know how long this site collection will stay there?

As you might already know, once you restore a users, the users OneDrive will restore, but you are saying that you did not restore the user, you used PowerShell to just restore the site collection.

Why dont you just restore it, then move the files out of it, put it in SharePoint or something and then you don't have to worry about that other users Restored Site Collection.
But, I would think, once you restore the site collection, and you have assigned a new site collection admin to it, then it will stay , as long as that new Site Collection Admin is active.

I just think there are easier ways to do what your trying to do. Since the only files in the users OneDrive should of been the users own Personal files, you could just move them to a new SharePoint library and not worry about the restored site collection

But yea, I think that answers your question