REST API Example: add existing user to USER GROUP
search cancel

REST API Example: add existing user to USER GROUP

book

Article ID: 217418

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

This article details an example of using the REST API documentation to adding an existing user to a usergroup.  This is just an example, for actual implementation, advice from the community or an implementation partner may be needed.

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Resolution

Using http[s]://{host}:{port}/ae/api/{version}/{client#}/objects/

 

{
  "data": {
    "usrg": {
      "metadata": {
        "version": "12.2.3"
      },
      "general_attributes": {
        "minimum_ae_version": "11.2",
        "child_flags": "00000000000000000000000000000000",
        "last_runtimes": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
        "name": "USRG.GENERAL",
        "type": "USRG",
        "description": "Administrator",
        "versioning_id": " "
      },
      "user_group_attributes": {
        "privileges": "4397777925374"
      },
      "members": [{
        "USERNAME": "AUTOMIC/AUTOMIC"
      }],
      "authorizations": [{
        "auth_group": "1",
        "bitcode": "511",
        "filter_object_type": "*",
        "filter_object_name": "*",
        "filter_agent_name1": "*",
        "filter_agent_name2": "*",
        "filter_user_id1": "*",
        "filter_user_id2": "*",
        "filter_file_names1": "*",
        "filter_file_names2": "*",
        "line_number": "1"
      }, {
        "bitcode": "511",
        "filter_object_type": "USER",
        "line_number": "2"
      }, {
        "bitcode": "511",
        "filter_object_type": "USRG",
        "line_number": "3"
      }]
    }
  },
  "path": "_ADMINISTRATION/USER.GROUPS"
}

Additional Information

Refer to the REST API documentation for more details.

https://docs.automic.com/documentation/webhelp/english/AA/12.3/DOCU/12.3/REST%20API/Automation.Engine/index.html?overrideUrls=../Automation.Engine/swagger.json,../Continuous.Delivery.Automation/swagger.json,../Analytics/swagger.json,../Infrastructure.Manager/swagger.json