Hi @Jérôme
Refer to step 4 of this document to find the Defender API and grant the above permissions to your app.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.