Forum Discussion

fstorer's avatar
fstorer
Brass Contributor
Mar 24, 2023
Solved

Is there a way to reset/wipe all data from M365 user accounts in order to re-use the same accounts?

Dear all,

 

I apologize in advance if I am posting my question in the wrong place. 

Every year we have external people coming to our campus who need to access specific school resources just for a few months. We have created several accounts for them with policy restrictions and we are happy with this solution. 

We were wondering if there is a way to automate the deletion of all their data (mainly OneDrive files/Outlook emails) at the end of their stay here in order to keep those accounts clean for the upcoming persons. We don't want to do this task manually. 

Is it quicker to delete the accounts and re-create them every year?

Many thanks in advance for any help

 

Francesco

  • yes , deleting the users will guarantee what you are trying to achieve , let me know if you need a PowerShell script to create the users based on csv input

    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily.

9 Replies

  • fstorer I recommend you use the identity governance by create a creating an access review for those users in a yearly time frame and you can use the lifecycle workflows to onboard and offboard the users 

     

     

    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily.

     

    • fstorer's avatar
      fstorer
      Brass Contributor

      elieelkarkafi thank you for your quick reply.

      Unfortunately that solution is not feasible at the moment for us because we don't have an Azure AD Premium P2 or E5 license.

       

      Francesco

      • what about a PowerShell script that delete the users for you based on CSV input ?

Resources