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>
Files: 
CommentFileSizeAuthor
#4 assign_user_id.zip1.03 KBdianacastillo

Comments

Category:feature» support
Status:Active» Closed (works as designed)

youll have to write your own resource for handling this, and we wont support this in standard services.

okay, i will write it

I have implemented hook_user_presave and hook_form_alter in a new moduel

StatusFileSize
new1.03 KB

I 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.