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: