If you want to restrict access to the data you should look into Row Level Security see the link Restrict Data Access with User Filters and Row Level Security - Tableau
If this posts assists in resolving the question, please mark it helpful or as the 'correct answer' if it resolves the question. This will help other users find the same answer/resolution. Thank you.
Thank you Ritesh, this really helped!