An Office service that supports add-ins to interact with objects in Office client applications.
Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.
Hi @Nobilex
Please note that there is an official forum to raise issue that is related NAA on GitHub. You can also ask your question via OfficeDev/office-js GitHub issues site.
However, I will try my best to provide you as much information as I got.
From this article, Nested app authentication FAQ - Office Add-ins | Microsoft Learn, you can check if the admin has any conditional access policies applied that enforce specific client restrictions, such as mobile location, or platform type. Also, the approved client app Conditional Access grant is deprecated and will cause these errors with NAA token requests. An admin must completely remove this policy and switch over to the newer application protection policy grant for NAA to work.
About pre-authentication, I found that you need preauthorize your client application to call itself. I saw that you already did this. Can you double check if you did this like the step below?
- In your app registration, go to Manage > Expose an API.
- In the same Expose an API pane, select Add a client application.
- Enter the client ID of your app registration (the same one you are in) which is found on the Overview page
- Select the
access_as_userscope and then select Add application.
See the readme for more details.
For you to receive the best suggestion and guidance about your concern with NAA, I recommend posting your scenario in the OfficeDev/office-js GitHub issues site. This forum is actively monitored by experienced users, and engineers who can provide detailed guidance and share best practices.
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.