microsoftgraph / microsoftgraph/msgraph-beta-sdk-dotnet

Security.AttackSimulation.Simulations.PostAsync has wrong return type, should return AttackSimulationOperation not Simulation

Open
#890 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dependency:metadata type:bug
Dominant language
C#
Stars
112
Forks
37
Avg merge
14h 57m
Merged PRs (30d)
3

Description

Describe the bug

When performing Security.AttackSimulation.Simulations.PostAsync(), the return type is stated to be Simulation, this is wrong.

image

When you perform a post operation against https://graph.microsoft.com/beta/security/attackSimulation/simulations, the Location header returned is a reference to an attackSimulationOperation object:

image
Expected behavior

Security.AttackSimulation.Simulations.PostAsync() should return attackSimulationOperation

How to reproduce

Any call to Security.AttackSimulation.Simulations.PostAsync(). It will work, but you can't then track the creation in order to get the simulation id.

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at Security.AttackSimulation.Simulations.PostAsync() and inspect its declared return type and the response represented by the Location header. Confirm that the operation can be followed to obtain the simulation id, then verify the generated SDK behavior for this POST request.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.