i want to create users but not let drupal assign the uid, I will send it , i tried this: but it ignores the uid and automatically creates the next available one. How can I avoid this? thanks, diana
<?xml version="1.0"?>
<methodCall>
<methodName>user.register</methodName>
<params>
<param>
<struct>
<member>
<name>name</name>
<value><string>candy.ruiz12</string></value>
</member>
<member>
<name>mail</name>
<value><string>candy.r@eeuwkern.org</string></value>
</member>
<member>
<name>pass</name>
<value><string>candy9223</string></value>
</member>
<member>
<name>uid</name>
<value><string>12930</string></value>
</member>
</struct>
</param>
</params>
</methodCall>| Comment | File | Size | Author |
|---|---|---|---|
| #4 | assign_user_id.zip | 1.03 KB | dianacastillo |
Comments
Comment #1
kylebrowning commentedyoull have to write your own resource for handling this, and we wont support this in standard services.
Comment #2
dianacastillo commentedokay, i will write it
Comment #3
dianacastillo commentedI have implemented hook_user_presave and hook_form_alter in a new moduel
Comment #4
dianacastillo commentedI made a module which works with services with xml-rpc and allows you to assign id you wish to user register via xml-rpc you must send the field uww_uid in the xml . I have attached it.