How can I configure the application or environment to suppress this repeated permission prompt?"

"I am attempting to read and write data to an Office Group Container, and I am consistently prompted with the "App would like to access data from other apps" alert. How can I configure the application or environment to suppress this repeated permission prompt?"

Answered by DTS Engineer in 871755022

Hi @Ankita-Shrivastava,

These forums for intended for code-level questions from our Developer community. This question is about a user-facing feature of macOS.

Please see the following support page for more details about Full Disk Access:

Mac User Guide: Change Privacy & Security settings on Mac

https://support.apple.com/guide/mac-help/change-privacy-security-settings-on-mac-mchl211c911f/15.0/mac/15.0#:~:text=Full%20Disk%20Access

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

I quit and launch the application multiple times. I want to avoid the alert "App would like to access data from other apps" every time I launch the application.

Hi @Ankita-Shrivastava,

These forums for intended for code-level questions from our Developer community. This question is about a user-facing feature of macOS.

Please see the following support page for more details about Full Disk Access:

Mac User Guide: Change Privacy & Security settings on Mac

https://support.apple.com/guide/mac-help/change-privacy-security-settings-on-mac-mchl211c911f/15.0/mac/15.0#:~:text=Full%20Disk%20Access

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Paris and I chatted about your issue and we realised that it has a bit more subtlety than we first thought.

First up, it’s not clear whether the app that hits this issue is one of your apps, or whether you’re hitting it an app created by a different third-party developer. We can help you in the first case, but in the second case you should talk to that app’s developer.

Assuming that you are the one creating this app, the alert you’re seeing is the result of a feature known as app group container protection. There’s a link to the WWDC video that introduced this feature in Trusted Execution Resources. I also have a bunch of info about app groups in general in my App Groups: macOS vs iOS: Working Towards Harmony post.

As explained in that last post, you don’t see this alert if all the apps accessing the app group are from the same team. However, there’s no way to avoid it if you’re trying to access an app group associated with some other team. The example you posted suggests you’re accessing a Microsoft Office app group. So, unless you happen to be working for Microsoft, it’s going to be tricky to avoid this alert.

My general take an that is that, if an app vendor expects other folks to be messing around with their files, they should create some sort of service to mediate that access.

Finally, one last thing that’s important to note here is that when the user allows this access it’s only persists for the lifetime of the calling process. There’s no way to grant this privilege persistently.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How can I configure the application or environment to suppress this repeated permission prompt?"
 
 
Q