Want to customize Issue Attachment Section

Hi Team,

We want to customize the JIRA issue attachment section, is there any way wherefrom we can run any Script or any custom code that we can create or Any third-party app can help me here.

My requirement is I want to show attachments to some set of people only.

I was checking one module jiraTimeTrackingProviders In that user is customizing the view of time tracking based on the permission scheme, can we develop the same concept for Attachment as well.

Any idea how can we implement this in Cloud.

Looking for your positive response.