AnsweredAssumed Answered

Using the RESTMAN Gateway Manangement APIs to create an Internal Identity Provider user

Question asked by Naichun on Dec 11, 2017
Latest reply on Feb 1, 2018 by Prashant0384

Hello,

 

I am trying to create an Internal Identity Provider user via RestMan and not sure where I can specify the new user's password in the XMLfile

 

Below is my XML

<l7:User providerId="0000000000000000fffffffffffffffe" xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
    <l7:Login>migrationadmini2</l7:Login>
    <l7:FirstName>migrationadmin2</l7:FirstName>
    <l7:LastName/>
    <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>migrationadmin</l7:StringValue>
        </l7:Property>
    </l7:Properties>
</l7:User>

 

 

"url": "https://10.10.1.251:9443/restman/1.0/users"

"method": "POST",

 

Below is the output

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<l7:Error xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Type>InvalidResource</l7:Type>
<l7:TimeStamp>2017-12-11T15:08:15.307-05:00</l7:TimeStamp>
<l7:Link rel="self" uri="https://10.10.1.251:9443/restman/1.0/users"/>
<l7:Detail>Resource validation failed due to 'MISSING_VALUES' Password required</l7:Detail>
</l7:Error>

 

p.s.

I tried to guess the syntax but no luck, e.g.

<l7:User providerId="0000000000000000fffffffffffffffe" xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
    <l7:Login>migrationadmini2</l7:Login>
    <l7:FirstName>migrationadmin2</l7:FirstName>
    <l7:LastName/>
    <l7:Email/>

    <l7:Password>************</l7:Password>
    <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>migrationadmin</l7:StringValue>
        </l7:Property>
    </l7:Properties>
</l7:User>

 

Or

<l7:User providerId="0000000000000000fffffffffffffffe" xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
    <l7:Login>migrationadmini2</l7:Login>
    <l7:FirstName>migrationadmin2</l7:FirstName>
    <l7:LastName/>
    <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>migrationadmin</l7:StringValue>
        </l7:Property>

        <l7:Property key="password">
            <l7:StringValue>********************</l7:StringValue>
        </l7:Property>
    </l7:Properties>
</l7:User>

 

 

Regards,

Naichun

Outcomes