I created one user with scim. The second one with dynamic script. The code I used like the below
```
new_user = User()
new_user.setAttribute("uid", person["USERNAME"])
new_user.setAttribute("mail", person["EMAIL"] + "@example.org")
new_user.setAttribute("givenName", person["GIVENNAME"])
new_user.setAttribute("middleName",person["CN"].split()[2])
new_user.setAttribute("sn", person["SURNAME"])
new_user.setAttribute("displayName", person["CN"])
new_user.setAttribute("persistentId", person["SERIALNUMBER"])
new_user.setAttribute("userCertificate", cert)
new_user.setAttribute("userPassword", pin)
```
After created these two user I try to set the same uid with scim and I got duplicate error. But when I do this operation with oxTrust UI I can set the same uid two different user. May be my code is not correct