title: Internal Provisioning error during existing user provisioning
body: <p>We're developing a SCIM API and during the integration testing between OneLogin and our application we always run into an error which can be reproduced with the following steps:</p>
  
  <ol>
  <li>Create a user in your application with xy@email.com (SCIM username)</li>
  <li>Create a user in OneLogin with the same email address</li>
  <li>Add this user to your application</li>
  <li>OneLogin should recognize that this user is already using that SCIM application so further provisioning action is not required. However, we got an "Internal Provisioning Error"</li>
  </ol>
  
  <p>I can verify that our API has been called and here are the 2 SCIM webrequests related to this flow:</p>
  
  <pre><code>GET https://appurl/svc/scim/v1/Users?filter=userName+eq+"xy%40email.com"
  
  {
    "schemas": [
      "urn:scim:schemas:core:1.0"
    ],
    "totalResults": 1,
    "itemsPerPage": 1,
    "startIndex": 1,
    "Resources": [
      {
        "userName": "xy@email.com",
        "emails": [
          {
            "primary": true,
            "value": "xy@email.com"
          }
        ],
        "id": "94724df5-2338-45a3-8b96-0f68afd273d4",
        "schemas": [
          "urn:scim:schemas:core:1.0"
        ]
      }
    ]
  }
  
  GET https://appurl/svc/scim/v1/Users/94724df5-2338-45a3-8b96-0f68afd273d4
  
  {
    "userName": "xy@email.com",
    "emails": [
      {
        "primary": true,
        "value": "xy@email.com"
      }
    ],
    "id": "94724df5-2338-45a3-8b96-0f68afd273d4",
    "schemas": [
      "urn:scim:schemas:core:1.0"
    ]
  }
  </code></pre>
  
  <p>After the 2nd GET request OneLogin returns with "Internal Provisioning Error"</p>
  
  <p>Is there something wrong with the response?</p>
  
  <p>Thank you,
  Peter</p>