Setting up OneDrive Digital legacy for your files and photos
Sign in at onedrive.com, select Settings, then Digital legacy, enter your trusted contact’s email and select Invite. After they accept, go to Digital legacy and select Get code, then share the code securely. Microsoft says the code doesn’t change and doesn’t expire.
Last reviewed: 20 November 2026.
Account holder steps
- Sign in to your OneDrive at onedrive.com and select Settings, then Digital legacy.
- Invite your trusted contact by entering their email, and select Invite.
- After they accept, go to Digital legacy and select Get code.
- Share the code securely.
What Microsoft says about the code and the contact
- Your trusted contact must have a Microsoft account.
- If you send an invitation by mistake or to the wrong person, select Cancel invitation.
- You are CC’d on the emails to your trusted contact, but don’t need to respond.
- 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 doesn’t change and doesn’t expire.
What the contact gets
Microsoft describes read-only access to your OneDrive so that, in the event of your death, the contact can view your files and photos. Once they download files, the copies can be edited. Their steps are in OneDrive Digital legacy for trusted contacts.
Microsoft’s page applies to OneDrive (home or personal). It does not cover Outlook.com email. Microsoft says that without Digital legacy it generally can’t provide account information to non-account holders.
Separate from Ember
Digital legacy is about your own files. Ember is about someone else: their photo and the days since they died on your iPhone Home Screen. Ember stores nothing in OneDrive or any cloud, so there is nothing of Ember to pass on.
Ember is free to download for iPhone (iOS 17 or later): one person, one photo, the small Home Screen widget and an alert for the next milestone. Ember — Forever is a one-time $9.99 purchase in the United States, not a subscription, and adds every person, up to twenty photos each, the medium and Lock Screen widgets, all four themes and an alert for every milestone.
Questions
Does the code ever expire?
Microsoft says the sharing code doesn’t change and doesn’t expire.
Can the contact use it while I am alive?
Microsoft describes Digital legacy as a way for the contact to access your OneDrive if you pass away or can’t use your account. Its page does not describe any check beyond the code and the 72-hour wait, and says you are CC’d on the emails to the contact.
Sources
Apple, iPhone, iOS, iCloud and other product and company names are trademarks of their respective owners. They are used here only to describe compatibility and how their products work. Ember is not affiliated with or endorsed by them.
Related guides
More: A loved one’s accounts and devices after they die · All guides