Hi Jerome ,
I think you need to add required permission for your Azure AD application registration associated with your Logic App.
To ensure that your Logic App has been granted the necessary application permissions to access the Advanced Hunting API, particularly the "Application.Read.All" permission, you'll typically need to follow these steps:
Azure AD Application Registration:
- Navigate to the Azure Active Directory portal.
- Find and select the Azure AD application registration associated with your Logic App.
- API Permissions:
- Within the Azure AD application registration, locate the "API permissions" or "Permissions" section.
- Add a new permission and select "Microsoft Graph" as the API.
- In the "Select permissions" pane, search for and select the "Application.Read.All" permission.
- Save the changes.
Grant Admin Consent:
- After adding the permission, you might need to grant admin consent to apply the permissions globally. This ensures that all users and applications associated with the Azure AD tenant can access the Advanced Hunting API with the specified permission.
- Access Token Acquisition in Logic App:
- Ensure that your Logic App is acquiring an access token with the necessary scopes, including "Application.Read.All", to access the Advanced Hunting API. This typically involves configuring an Azure AD connector or an HTTP connector to acquire an access token with the required permissions.
- Test your Logic App to ensure that it can successfully access the Advanced Hunting API and perform the desired actions without encountering permission errors.
Image and doc for ref
Kindly check and accept if it helps, Thanks