Forum Discussion
Meetrajsinh
Jul 11, 2022Copper Contributor
Issue with API of Microsoft Defender for Endpoint
Hello team, i tried to access the APIs of Microsoft Defender for Endpoint, but unable to access the APIs, everytime it throws Unautorized status code. I have used application context OAuth Bearer tok...
Meetrajsinh
Copper Contributor
I tried with New Secret Key, but receiving same error.
BillTheKid
Jul 12, 2022Brass Contributor
When your client secret is fine and you still get unauthorized you might be missing the Admin consent for the permission you requested. Every time you add a permission, you must select Grant consent for the new permission to take effect. Need to be done by Global-Administrator for example, Security-Admin is not enough.
- MeetrajsinhJul 13, 2022Copper Contributor
Yes BillTheKid, I already granted consent with an admin account, though it was giving the same error. I don't know how, but since yesterday it was working fine with the same configuration, I have not changed the configurations. Don't know what was the issue 😅