How to allow Security permissions though a script without user interaction?

Hello! I work for an MSP, and we are trying to automate the Mac sides of our system a bit more. I'm attempting to write a script to install a couple of our tools and I'm stuck on how to give the application permissions to the system.


I am writing the script in bash at the moment and can Install the program with out issues on to the computer with exception of giving permissions to the application. At the moment I'm working on installing Anti-Virus on the computer. The AV needs "Full File Permissions" enabled for the application to run correctly.


The only way that I'm seeing to add it would be to have the user/tech add it manually, but we are trying to avoid that and have it completed all with a script, and 0 user interaction.


Any help with this would be amazing! Thank you!

MacBook Pro

Posted on Oct 19, 2022 1:41 PM

Reply

Similar questions

5 replies

Oct 20, 2022 6:44 PM in response to MrHoffman

MrHoffman wrote:

(Which also requires user approval to load the profiles.)

Neither Apple nor any other company is going to sell devices pre-configured with a customer's own setup and software. There has to be some kind of initial configuration. I'm not an enterprise expert, so I don't know what that entails. But MDM is definitely the way to go.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to allow Security permissions though a script without user interaction?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.