Skip to main content

Register user with profile fields using services module


This json format worked for me creating user with profile2 term reference fields in which multiple selection can be done. Below profile_student_profile is term reference field with multiple selection.


 {   
   "name":"oiu",  
   "mail":"oiu@aol.com",  
   "field_mobile_number":{   
    "und":{   
      "0":{   
       "value":"987393"  
      }  
    }  
   },  
   "pass":"adsa",  
   "field_requirement":{   
    "und":{   
      "0":{   
       "value":"vzxvczx"  
      }  
    }  
   },  
   "field_gender":{   
    "und":"female"  
   },  
   "field_class":{   
    "und":[   
      "12"  
    ]  
   },  
   "field_area":{   
    "und":[   
      "31"  
    ]  
   },  
   "status":1,  
   "field_preferred_fee":{   
    "und":[   
      "434"  
    ]  
   },  
   "profile_student_profile":{   
    "field_preferred_fee":{   
      "und":[   
       "432",  
       "433"  
      ]  
    }  
   }  
 }  
   

Comments

  1. Hey Ashish,
    I too tried to send profile fields along with user fields to user register service.
    But, User are getting created without user profile fields.

    ReplyDelete
    Replies
    1. I tried with only with term reference field with multiple selection & try different format

      Delete

Post a Comment