I followed the following document https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-create-app-nativeapp#create-an-app to create an app. I tried getting the access token and using that access token i tried hitting the following API: https://api.securitycenter.microsoft.com/api/indicators (Reference: https://learn.microsoft.com/en-us/defender-endpoint/api/post-ti-indicator). However I keep getting 403 with below response.
I have already added the appropriate API permission still it gives the same error. Apart from that the access token doesnot contain 'scp' claim as suggested in the documentation.
{
"error": {
"code": "Forbidden",
"message": "Missing application roles. API required roles: Ti.ReadWrite.All,Ti.ReadWrite, application roles: .",
"target": "|a3a2c86d-4d801fec358d26ce.1."
}
}