Layer7 API Management

Expand all | Collapse all

How to use REST management API to create groups in IdentityProvider?

  • 1.  How to use REST management API to create groups in IdentityProvider?

    Posted 02-19-2019 03:44 PM

    In the https://gateway.mycompany.com:9443/restman/1.0/doc/home.html , it only shows how you can create User by 

    POST 1.0/identityProviders/{identityProviderID}/users, but it does not have the instructions for using POST to create a Group.

    Is this possible?

    Note that I did try using an ansible call and using an xml:

       <l7:Group providerId="{{ tmpxmlhash.parentid.0 }}" xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
    <l7:Name>GroupName</l7:Name>
    </l7:Group>

    It does not work."HTTP 405 Method Not Allowed"

     

    Thanks 



  • 2.  Re: How to use REST management API to create groups in IdentityProvider?

    Posted 02-19-2019 06:17 PM

    I just double check the restman document on https://<gateway>:<port>/restman/1.0/doc/restDoc.html#1.0/groups 

    There is no restman API to create group.

    So, you cannot create group via restman



  • 3.  Re: How to use REST management API to create groups in IdentityProvider?

    Posted 02-19-2019 06:51 PM

    Thanks Zhigun.

    i want to create groups in identityProviders. It appears it cannot be done since it does not show in the resources documentation.

     

    Are there any other way to create using scripts?



  • 4.  Re: How to use REST management API to create groups in IdentityProvider?

    Posted 02-22-2019 09:53 AM

    Hi 

     

    You want to create groups on the internal  identityProviders ?

     

    Regards 

    Dirk