I want to restrict a Jenkins jobs that will only work (slaves deployed) if invoked by certain users. That user will call the job using Jenkins API with auth parameters in the request headers. The user is part of the Unix AD group having access to certain directories on the Host(EC2). Jenkins needs to run the process using the logged in user credential so that it can access these directories. Is that possible with any plugin currently available.
We have Jenkins running in a master-slave configuration on a Kubernetes Cluster and using jenkins-k8 plugin. I could not find a way to restrict jobs based on User Unix Role/access.