macjo14

Using RESTMan to create a user in the IIP

Discussion created by macjo14 Employee on Aug 13, 2015
Latest reply on Aug 16, 2016 by PhBrand

Creating a user in the Internal Identity Provider using RESTMan has a bit of a gotcha - it requires a Password field to be added. RESTMan does not return a user object with the Password field so it is unclear exactly how this is done. After some experimentation I discovered that the order of the elements matters and Password MUST be right after the Login element:

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<l7:User providerId="0000000000000000fffffffffffffffe" xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">

  <l7:Login>testuser</l7:Login>

  <l7:Password>7layer</l7:Password>

  <l7:FirstName>Test</l7:FirstName>

  <l7:LastName>User</l7:LastName>

  <l7:Email>testuser@gmail.com</l7:Email>

  <l7:Properties>

    <l7:Property key="accountExpiration">

      <l7:LongValue>-1</l7:LongValue>

    </l7:Property>

    <l7:Property key="enabled">

      <l7:BooleanValue>true</l7:BooleanValue>

    </l7:Property>

    <l7:Property key="name">

      <l7:StringValue>testuser</l7:StringValue>

    </l7:Property>

  </l7:Properties>

</l7:User>

Outcomes