Univention Bugzilla – Bug 50262
[UDM HTTP API] PATCH position does not move user
Last modified: 2019-09-25 16:49:38 CEST
When telling the UDM REST API to change the "position" of an object, it only works in PUT, but not in PATCH: ------------------------------------------------------- $ udm users/user create --set username="newuser01" --set firstname="Random" --set lastname="User" --set password="Univention.99" WARNING: The object is not going to be created underneath of its default containers. Object created: uid=newuser01,dc=uni,dc=dtr ------------------------------------------------------- curl -i -X PATCH \ -H "Accept:application/json" \ -H "Content-Type:application/json" \ -d \ '{ "position": "cn=users,dc=uni,dc=dtr" }' \ 'https://m66.uni.dtr/univention/udm/users/user/uid=newuser01,dc=uni,dc=dtr' ------------------------------------------------------- $ univention-ldapsearch -LLL uid=newuser01 dn dn: uid=newuser01,dc=uni,dc=dtr