Forum Discussion
Matthew Carter
Mar 04, 2025Iron Contributor
Disabled user move files to activate account - how are people doing it
When a user is disabled in Entra ID, I normally MANUALLY copy / delete the files to another OneDrive For Business account, often their manager. I use a 3rd party tool to copy from the disabled use account.
Iam a Global Admin and I also have the SharePoint Admin Role.
I often find that their data to be large and it takes a LONG time. I tried to do a Power Automate workflow yet I am a sys admin and not a developer so I get confused quickly with code.
How are people handling requests to move data to another OneDrive for Business account from a disabled one to an enabled one?
I worry about synchronizing it with OneDrive on my local laptop and then trying to MOVE. I don't know if that will ever work or if it will COPY instead of MOVE.
Via the built-in tools, you can only copy it to a shared repository (i.e. SPO Group/team site). And it's also limited to 500MB at a time... so not the best choice. Neither is syncing to the local device IMO. I'd recommend using a PnP-based script instead, Copy-PnPFile/Copy-PnPFolder and their Move- siblings should do.
- Matthew CarterIron Contributor
Thank you for taking the time to reply. So when a person is no longer with the company, you use PnP to move the files? I use a 3rd party to COPY the files, yet if I have 500GB of data, for example, as it is a person's OneDrive for Business with their Desktop, Documents, Pictures, it could be large. The Copy-PnPFile or Folder is the only way?
It's not the only way, just the preferred one :)