This is the framework behind allowing delegated administration in a Puppet environment.
I gave a presentation at Puppetize Digital 2020: Delegated Administration in a Distributed Environment - Providing Puppet as a Service
This is a sample of all the code needed to get a feel for how you can stand this up in your environment.