This article explains how to use the game sharing feature on Microsoft Xbox One, Xbox One S, and Xbox One X to share your digital video game library with each other without having to be online or in the same physical location at the same time.
How to Share a Game on Xbox ~The Easy Way~
Before you can enable game sharing on your console, each person will need the following:
A Home Console is a single Xbox One console that is manually chosen as the primary device for a specific user. Designating an Xbox One as the Home Console associates all online digital purchases and service subscriptions with that device, and makes all account content available for use even when that user is away.
If you have a Home Console at home, you can still sign in to other Xbox One consoles to access your games and media at any time. This is useful if you're visiting a friend or family member, for example. However, the moment you sign out of that other console, all access to your purchases will be revoked.