Hello,
Welcome to Microsoft Q&A!
This behavior is expected. The message is clear-using win32 API to access file permissions.
Not all the win32 API could pass the Store WACK test even when the app is packaged with Desktop Bridge. And the API works fine when debugging in Visual Studio locally doesn't mean that API is allowed in the Store.
You might need to check other APIs that could get the file but not get the file permissions. Or you could just use Windows.Storage Namespace.
Thank you.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.