To apply a retention policy to a shared mailbox, you need to create retention tags and a new retention policy, attach the tags to the policy, and then apply the policy to the shared mailbox.
For getting access to Teams, a user must have an assigned Microsoft Teams license from Office 365 Admin Center. Because without assign Microsoft Teams license users cannot log in to Teams.