Hello
Scenario:
one website with multiple stores. Each Store has 1-2 store views.
We need to prevent customers been able to access all the store views but only assigned to their accounts.
Is there a way?
By default Magento 2 EE doesn't have this kind of functionality.
So either you need to create custom module - Magento 2 EE have permission module itself - so you can enhanced that module and override in your custom module and do this mention task.
or else there is good extension on magento marketplace it self to do this here i am sharing link for more reference - https://marketplace.magento.com/itoris-store-login-control.html
By Default, Magento 2 EE doesn't have this kind of functionality with default instance.
You need to modify/customize based on your requirements Or you can get already existing magento 2 extension from Merchant site,
2. Magepsycho Store Restricition