title: Updating customer data from observer after customer_register_success event
body: <p>Having issues setting the customers group id from an observer. The event is picking up on a new user creation via customer_register_success event. The event is passed to my observer, e.g.</p>
  
  <pre><code>    public function registrationSuccess(Varien_Event_Observer $observer) {
  
          // extract customer data from event
          $customer = $observer-&gt;getCustomer()-&gt;getData();
  
          Mage::log('COOKIES', json_encode($_COOKIE));
  
          // a cookie should have been set with the membership id
          if (isset($_COOKIE['membership_account_id'])) {
  
              Mage::log('COOKIE SET, ASSOCIATING MEMBERSHIP');
  
              // associate new account with membership, and upgrade user to membership status
              $this-&gt;associateMembership($customer['entity_id'], $_COOKIE['membership_account_id']);
  
          }
  
      }
  </code></pre>
  
  <p>Which then calls the associateMembership method to update the group id, and set a <em>custom</em> customer attribute called rms_id:</p>
  
  <pre><code>public function associateMembership($customer_id, $account_id) {
  
          // load customer model
          $customer = Mage::getModel('customer/customer')-&gt;load($customer_id);
  
          Mage::log('CUSTOMER DATA: ' . json_encode($customer-&gt;toArray()));
  
          // upgrade customer to membership level, and set custom rms_id attribute
          $customer
              -&gt;setWebsiteId(Mage::app()-&gt;getWebsite()-&gt;getId())
              -&gt;setGroupId(4)
              -&gt;setRmsId($account_id);
  
          // save
          try {
              $customer-&gt;save();
              Mage::log('ACCOUNT ASSOCIATED: CUSTOMER ID = ' . $customer_id . ' ACCOUNT ID = ' . $account_id);
          } catch (Exception $ex) {
              Mage::log($ex);
          }
  
      }
  </code></pre>
  
  <p>For some reason, there's no error coming back. I'm getting the correct user id, and everything seems to be working. However, the group is not being set, nor is my custom id.</p>
  
  <p>Should I be using another event that will allow the save to go through?</p>