If you’re hosting your Mac app on the App Store, you can follow the steps in this Apple support article to disable this permissions question.

If you are hosting the app on a platform like Steam, on which the app is unsigned, the app will request permission only on the first launch. It won’t ask for access later. If you’re a developer who sees this when launching your dev app from Xcode, you’ll see the permission request every time.