Hi,
Thank you for coming Microsoft MECM Q&A forum.
Here is a helpful article for your reference. Please try to test it and confirm it does what you think you want it to do in your environment:
ConfigMgr Inventory Share Permissions
Thanks for your time.
Best regards,
Simon
If the response is helpful, please click "Accept Answer" and upvote it.