The following is one of the lines I added in Jenkins Pipeline Script.
def returnVal = input message: 'Please check the configuration. Approve?', parameters: [booleanParam(defaultValue: true, description: 'Generate backup for this config?', name: 'Backup')], submitter: 'admin-approver', ok: 'Approve'
The "submitter" parameter would allow only the users who are Administrators to click Aprrove/Abort buttons on the dialog.
In this case, if users who don't have permission to click on that should be acknowledged that they don't have permission to either Approve/Abort.
Any ideas?