Direct answer
Yes. Full Disk Access is added under Privacy & Security by an admin account, and your account is an admin account. What you need to think through is who gets it: grant it to Terminal, and every program run in Terminal can read this data.
Basis
- Messages keeps its chat history at
~/Library/Messages/chat.dbin the user Library, as a SQLite file. The folder is protected by the system; a program without Full Disk Access is refused even a directory listing. - This permission has no runtime prompt. You have to go to System Settings → Privacy & Security → Full Disk Access, add the program and turn on its switch, and the change takes effect only after you quit and reopen that program.
- The permission goes to the program that launches the script. Run it by hand in Terminal and it goes to Terminal; when a scheduled job or an agent launches it, the permission holder becomes the corresponding interpreter or app, so passing your test does not mean it will have permission in production.
- Full Disk Access opens up more than the Messages database: Mail, Safari data and other apps' private data under the same user become readable too, a wider scope than the name suggests.
Boundaries: when the answer is different
The database schema is not a public interface; Apple has changed it in system updates and may change it again. Run read-only queries only and never write to it, because writing can corrupt the chat history. Do not delete or switch off entries already in the privacy lists; some of them are programs needed for remote access and platform maintenance. The platform itself does not record the content of your business data and does not proactively access device content, but what a third-party tool you authorize will read, and whether it sends it elsewhere, is decided by that tool, and we cannot vet that for you. If a switch cannot be changed, contact support to check; we do not guarantee all of them can be opened up. Remember to sign out of Messages and your Apple Account before you end the rental.
How to do it
- First decide which program will do the reading: preferably a small tool that does only this job, not a general-purpose terminal.
- Through the remote desktop, open the Full Disk Access list, add that program and turn on its switch.
- Quit and reopen the program, open the database read-only with
sqlite3, and query the latest few records to verify. - Wrap the query in a script that takes only the fields you need, and do not let the results land in a synced folder.
- Go back to the list and turn the switch off when you no longer need it.
Related questions
- iMessage, AppleScript and Shortcuts on a rented Mac mini: it runs, but Apple decides about your account
- Can I automate iMessage and AppleScript on a rented Mac mini?
- Automation vs Accessibility permission on macOS: which does my script need?
- Can the rental provider see the code on my machine?
- launchd or cron: which should I use for scheduled jobs on a remote Mac?
Use case
This question belongs to the use case: iMessage, AppleScript and Shortcuts on a rented Mac mini: it runs, but Apple decides about your account
Other questions in the same use case:
- What am I not allowed to use a rented Mac mini for?
- Will support ever ask for my password or Apple ID?
- Can Shortcuts run automatically on a schedule on a remote Mac mini?
- Do Automator and Folder Actions still work on a rented Mac mini?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support