PlayStation Support says that if the console is shared, “Console Sharing and Offline Play” should be turned on so other accounts on the same PS5 can play.
The same page places that setting under Settings > Users and Accounts > Other. Use the account that bought the game or redeemed the code when you change it.
Source: PlayStation Support
Facts on this page were checked against the linked official pages, most recently on 19 November 2026. If a source page changes, that page wins.