Microsoft Graph - Training Campaign - POST request has stopped working

Marcin Samuel 0 Reputation points
2024-09-03T12:07:04.0433333+00:00

I write an automation which uses Microsoft Graph API and endpoint /security/attackSimulation/trainingCampaigns . All any POST requests worked couple days ago (until mid/end August 2024). Today I noticed that POST request fails with an error code 400. Could you please check whether "trainingAssignmentMappings" body section has been recently changed?

I tested "code examples" from an official documentation and they does not work any more https://video2.skills-academy.com/en-us/graph/api/attacksimulationroot-post-trainingcampaigns?view=graph-rest-beta&tabs=http

I tried send a POST request from Microsoft Graph website, PowerShell script using Invoke-WebRequest and with cmdlet New-MgBetaSecurityAttackSimulationTrainingCampaign from Microsoft.Graph.Beta.Security. In every case it returns status 400 (BadRequest)

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,832 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Samuel 0 Reputation points
    2024-09-04T15:05:27.12+00:00

    I also opened an issue request on GitHub, it contains a bit more details https://github.com/microsoftgraph/microsoft-graph-explorer-v4/issues/3325

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.