How to restrict a user to stock items in a company?

Hello everyone,

I have Company A and Company B, Please how can I restrict users in Company A not to have access to the Stock items that belong to Company B ?

Please refer to the User Permissions functionality in ERPNext using this link:

https://docs.erpnext.com/docs/user/manual/en/user-permissions.