Team-wise and User-based Data Visibility across all doctypes in ERPNext

In ERPNext,

How can proper role-based and hierarchy-based access control be enforced so that users only see their allowed records while team leads can view their team data?

@ShilpaShivan

You need to work with Role Permission Manager which will bring control on Recording Level.
User Permission is where more strong control is.

Please check documentation for further help.

Thank you so much for taking the time to go through my query and providing a document link for reference. I truly appreciate your support and guidance. I will definitely try this out and see how it works. Thanks again for your help .