Authentication and user restrictions on selected automations

I’m putting together a project where I need to restrict permissions to config.yaml, automations, scripts and helpers, but only for my selected ones. I need the user to not be able to copy/modify my part of code, but at the same time to be able to create their own automations, scripts,…
Is something like this possible? If so, please provide an example.
Thank you

Hi, any clue?