Continuous Delivery Automation

Expand all | Collapse all

what is the REST API for Adding new USER in Automic ARA?

  • 1.  what is the REST API for Adding new USER in Automic ARA?

    Posted 02-28-2019 02:19 AM

    Hi Team,

     

    I was looking for REST API for adding user in ARA. I wanted to automate the process of adding new user. when I checked the REST API PAGE for ARA, I could only locate "GET users" function only. No POST feature for adding users with required information such as username, Dept. , LDAP-Enabled, Mail-id & User-group.

     

    REST_APLI_USERs



  • 2.  Re: what is the REST API for Adding new USER in Automic ARA?



  • 3.  Re: what is the REST API for Adding new USER in Automic ARA?

    Posted 03-01-2019 02:31 AM

    Hi Michael,

    Thanks for help.

     

    however when I am passing below values for creating user as below.

    I am getting error."The Requested resource does not support http method 'POST'

     

    phtml = "{OUR_AUTOMIC_URL}//ara/api/data/v1/users"

    below is the string I am passing.

     

    {
      "$schema": "{OUR_AUTOMIC_URL}/api/data/v1/schemas/CreateUserCommand_Parameter.json",
      "name": "AG-1",
      "display_name": "AG-1",
      "password": "test1",
      "is_active": false,
      "is_admin": false,
      "authentication_method": "Internal",
      "description": "This is a description",
      "email_address": "AG@bankofthewest.com",
      "phone_number": "1234567890",
      "type": "user"
    }



  • 4.  Re: what is the REST API for Adding new USER in Automic ARA?

    Posted 03-04-2019 07:40 AM

    Hi AmitGohel,

     

    are you already using V12.2? Because this REST-endpoint was introduced in V12.2.

     

    Make sure that the data are in the body of your request and format is set to application/json.

    You should also use a "full qualified" user-name <client>/<id>/<department> e.g. 100/AG-1/CDA-USERS

     

    {
        "name": "100/USER-20190304/AUTOMIC",
        "password" : "1234",
        "display_name": "Test User",
        "is_active": true,
        "type": "User",
        "description": "user is created by REST",
        "email_address": "test@email.com",
        "phone_number": "1-555-1234 5678",
        "is_admin": false,
        "authentication_method": "UC4"
    }


  • 5.  Re: what is the REST API for Adding new USER in Automic ARA?

    Posted 03-07-2019 05:25 AM

    Hi Michael,

    We are using Automic Web Interface 12.1.1.GA02-dev-feature-12.1.1-GA02-68435.

    could it be the reason ? however I am passing correct info as you mentioned above.

     

    Thanks

    Amit G



  • 6.  Re: what is the REST API for Adding new USER in Automic ARA?

    Posted 03-07-2019 10:18 AM

    As already written the functionality adding users using a REST-endpoint was introduced with version 12.2.
    Service pack v12.2.2 was released by end of February 2019
    Download details https://downloads.automic.com/downloads/quick_start/ara?offering_version_id=1540809392924 (accessible after login)