Microsoft has a setting called OneDrive Digital legacy that lets you choose a person who may view your OneDrive files and photos after you pass away. The setting covers OneDrive only, and without it Microsoft generally cannot give your account information to anyone but you, for privacy and other legal reasons.
OneDrive is Microsoft's online storage for your files and photos. The person you choose is called your trusted contact. The trusted contact gets read-only access, which means the person can open and look at your files and photos. Once files are downloaded, the downloaded copies can be edited.
Before you start
- A device where you can sign in to your OneDrive at onedrive.com.
- The email address of the person you want to name. Your trusted contact must have a Microsoft account.
- A sheet of paper that you keep with your important papers.
Set up OneDrive Digital legacy
Microsoft's page names the buttons but not where each one sits on the screen, so look for the words in each step.
- Open Digital legacy. Sign in to your OneDrive at onedrive.com. Find Settings and click it. Then find Digital legacy and click it.
- Invite your trusted contact. Type your trusted contact's email address. Find Invite and click it. Microsoft sends your contact an email invitation and copies you on the email, and you do not need to reply. If you send an invitation by mistake, or to the wrong person, find Cancel invitation and click it. Microsoft's page does not say where on the screen Cancel invitation is.
- Ask your contact to accept. Tell your trusted contact to look for the invitation email and accept the invitation.
- Get the code. Go to Digital legacy again. Find Get code and click it. Microsoft's page lists this step after your contact accepts, and does not say whether Get code is on the screen before then.
- Share the code securely. Microsoft's page says you can share the code straight away, write it down in your Will, or give it to a third party such as a lawyer or estate executor. The code does not change and does not expire. FortifiedWall never asks for the code and never keeps it, and the workshop worksheet has no space for it.
- Write down your choice. On the sheet of paper, write that you set up OneDrive Digital legacy and who your trusted contact is. Do not write the code on this sheet.
- Check that it worked. Go to Digital legacy again. Microsoft's page does not say what the screen shows once you have invited a contact, so we cannot say what you will see.
Two things make the setting work: your contact accepts the invitation, and you share the code.
What this does not do
- OneDrive Digital legacy is for your OneDrive files and photos. Microsoft's page does not describe it for your Outlook.com email or for any other part of your Microsoft account.
- The setting does not keep your account open. Microsoft's account activity policy says you must sign in at least once every two years to keep the account active. Microsoft can close inactive accounts, though an active subscription or an unspent balance also keeps an account active. Microsoft's page for when someone has passed away explains what happens if nobody can sign in. Outlook.com and OneDrive accounts freeze after one year, and emails and OneDrive files are deleted shortly after. The Microsoft account itself expires after two years of inactivity. Microsoft's pages do not say what frozen means, and do not say whether OneDrive Digital legacy changes either period.
- You can see your own account's activity status at account.live.com/Activity. The status shows how often you need to sign in to keep the account active. A recent purchase or other activity can take up to 30 days to show.
- Naming a trusted contact is not a will, and it gives that person no legal authority over your estate, which means everything you own. FortifiedWall does not give legal advice. The guide on planning the digital side of your estate says how your will and your account settings fit together.
- The setting covers your Microsoft account only. Your Apple Account and your Google Account have settings of their own, and the guides under Related below cover them. To think through your other accounts, you can take the readiness assessment.
If your screen looks different
Microsoft's page links the words Digital legacy to onedrive.live.com/?v=digitallegacy. If clicking Settings does not show Digital legacy, type that address into your browser.
Sources
- Microsoft: Preserve your digital legacy with OneDrive, read on 15 November 2026.
- Microsoft: Accessing Outlook.com, OneDrive and other Microsoft services when someone has died, read on 15 November 2026.
- Microsoft: Microsoft account activity policy, read on 15 November 2026.