Managing and Migrating Groups permission via REST API

book

Article ID: 144637

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio) CA Release Automation - DataManagement Server (Nolio)

Issue/Introduction

CA Release Automation (CARA) have its public REST API, which can be used for various management and administration activity without login to Web-Interface. In this documents we are going to brief on REST API for Managing and Migrating Users permission.

Environment

Release : 6.6 or higher

Component : CA RELEASE AUTOMATION RELEASE OPERATIONS CENTER

Resolution

Note: Each REST API requires a basic authentication. The request should be having authentication token for invoking the API.

REST API Swagger: http://NAC-IP:NAC-PORT/datamanagement/apis/public.html

Get Users Groups:

Get Group Permissions:

(The other query parameter can be used in this requests are application=My and applicationId)

Create a New Group:

{
 "role":
{
  "type": "user",
  "applicationCreator": false,
  "artifactsManager": false
  },
     "isLdap": false,
     "name": "groupname4",
     "ldap": false
}

Add Users to Groups:

{
"groupIds": [
   7
],
"userIds": [
   17,18
]
}

Update Group Permission:

{
"groupIds": [
   5
],
  "list": [
       {
           "owner": false,
           "canView": true,
           "designer": false,
           "publisher": false,
           "designViewer": false,
           "canExecuteProcessesInAllEnvironments": false,
           "canApproveReleasesInAllEnvironments": false,
           "canExecuteReleasesInAllEnvironments": false,
           "environmentPermissions": [
               {
                   "admin": false,
                   "templateCategoriesCanDeploy": [],
                   "canExecuteAllProcesses": true,
                   "releaseDesigner": false,
                   "processesCanExecute": [],
                   "canExecuteAllReleases": false,
                   "canApproveAllReleases": true,
                   "name": "Environment for Single Server Architecture",
                   "id": "2"
               }
           ],
           "deploymentPlanDesigner": true,
           "canViewExecutionComponents": false,
           "releasesTemplateDesigner": true,
           "name": "Test Application",
           "id": "3"
        },

       {
           "owner": false,
           "canView": true,
           "designer": true,
           "publisher": false,
           "designViewer": true,
           "canExecuteProcessesInAllEnvironments": false,
           "canApproveReleasesInAllEnvironments": true,
           "canExecuteReleasesInAllEnvironments": true,
           "deploymentPlanDesigner": false,
           "canViewExecutionComponents": false,
           "releasesTemplateDesigner": false,
           "name": "My",
           "id": "4"
       }
   ]
}
Delete User Groups:

Additional Information