Internal server error while trying to add an user with the same OnPremisesImmutableId RRS feed

  • Question

  • Steps to reproduce:

    1) Create an user using POST

    with specific onPremisesImmutableId

    Response: 201

    2) Try to create else one user with the same onPremisesImmutableId and another UPN

    Expected: 400 code=Request_BadRequest message=Another object with the same value for property onPremisesImmutableId already exists

    Actual: 500 code=InternalServerError message=The given key was not present in the dictionary.

    Thursday, July 27, 2017 8:31 AM

All replies

  • Also looks like error messages also broken. If try to add user with the same UPN then response will contain correct status code:400 Request_BadRequest, but incorrect message: An error occurred while processing the write request. Expected message: Another object with the same value for property userPrincipalName already exists

    Thursday, July 27, 2017 8:43 AM