Reviving this thread since I also need an API for testing if my APP has FDA.
This is a security app, so upon installation we request the user to grant us Full Disk Access, but some users may miss this prompt and thus not grant the access.
We need a way to test in the app if we have FDA or not, so that we can give out some hint about it.
So far I've only found threads asking for such an API, but I haven't found an official one released.
I opened an enhancement suggestion to Apple in the hopes that they will right such:
FB13511819 (Need an API to recognize if an app has Full Disk Access)
In the meanwhile I'll experiment with the other suggestions in this thread.