Export user via REST API.

book

Article ID: 211116

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Here is a GET REST Call to export a user object called RESTAPI/RESTAPI: User name and department are separated by %2F.

GET {{URLROOT}}://{{HOSTNAME}}:{{PORT}}/{{APIURL}}/{{APIVERSION}}/{{CLIENT}}/objects/RESTAPI%2FRESTAPI

See also

AE REST API documentation

 

GET/{client_id}/objects/{object_name} Can be used to export single objects by name

Cause

How To.

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Resolution

The result of the GET:

{
    "total": 1,
    "data": {
        "user": {
            "metadata": {
                "version": "12.3.5"
            },
            "general_attributes": {
                "minimum_ae_version": "11.2",
                "child_flags": "00000000000000000000000000000000",
                "last_runtimes": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
                "name": "RESTAPI/RESTAPI",
                "type": "USER",
                "versioning_id": " "
            },
            "user_attributes": {
                "is_active": "1",
                "eh_refresh_interval": "90",
                "last_session": "2021-03-22 18:10:30.0",
                "privilege": "17591917475327",
                "valid_from": "2000-01-01 00:00:00.0",
                "valid_to": "2000-01-01 00:00:00.0"
            },
            "authorizations": {
                "auth_group": "1",
                "bitcode": "255",
                "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"
            }
        }
    },
    "path": "ADMIN/USER.OBJECTS",
    "client": 100,
    "hasmore": false
}