Creating new users using Crowd REST ignores <attributes> element

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • 2.9.1
    • Component/s: REST

      When a new user is created by posting to http://localhost:8095/crowd/rest/usermanagement/latest/user the new user is created without any of the attributes specified in the XML. For example:

      <user name="foo" expand="attributes">
            <first-name>foo</first-name>
            <last-name>foo</last-name>
            <display-name>foo foo</display-name>
            <email>foo@example.com</email>
            <active>true</active>
            <attributes>
            <attribute name="foo"><values><value>foo</value></values></attribute>
          </attributes>
            <password>
              <link rel="edit" href="/user/password?username=foo"></link><!--  -->
              <value>pyramid</value>
            </password>
          </user>
      

      It would be nice to be able to create a new user with attributes with a single REST call, without having to call /user/attributes separately.

            Assignee:
            Jeremy Evans
            Reporter:
            eero (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: