Shows 403 when trying to do “get”->api.security.microsoft.com/api/dataexportsettings via code
Hey folks!
I’m trying to automate creation of “data export settings” in Microsoft Defender for Endpoint. Path to find it in UI – {Endpoints > Partners and APIs > API Explorer}.
When I try to “GET” > api.security.microsoft.com/api/dataexportsettings on UI it works and shows me the connections configured BUT when I try to do the same via powershell it shows me 403.
I have followed https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-create-app-webapp to use an application to authenticate. I have enabled all the “application” permissions in WindowsDefenderATP (count 31) still looks like I don’t have the correct permission assigned.
Any idea what’s the permission I’m missing here?
I’d appreciate any help!
Hey folks!I’m trying to automate creation of “data export settings” in Microsoft Defender for Endpoint. Path to find it in UI – {Endpoints > Partners and APIs > API Explorer}.When I try to “GET” > api.security.microsoft.com/api/dataexportsettings on UI it works and shows me the connections configured BUT when I try to do the same via powershell it shows me 403.I have followed https://learn.microsoft.com/en-us/defender-endpoint/api/exposed-apis-create-app-webapp to use an application to authenticate. I have enabled all the “application” permissions in WindowsDefenderATP (count 31) still looks like I don’t have the correct permission assigned.Any idea what’s the permission I’m missing here?I’d appreciate any help! Read More
api.security.microsoft.com/api/dataexportsettings via code” />
Having the same issue, I believe Microsoft don’t allow you to interact with the data export API from the context of an application.
{“error”:{“code”:”Forbidden”,”message”:”Application context is not allowed to access this API. Expected user context.”,”target”:”|.”}}