You can allow an application to access data if you change settings in
Security & Privacy →
Full Disk Access.
Is there command to accomplish the same in terminal?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
There is an article for Admins on the Apple site that mentions how to handle this:
To use the
systemsetup command with either the
-setremoteappleevents flag in macOS Catalina 10.15 or later, first give the parent process full-disk-access. You can grant full-disk-access manually or using Mobile Device Management (MDM):
For more information about its usage, see the
systemsetup(8) man page.