Group API

Group API

Groups can be accessed and modified through this API using four services: GET, POST, PUT, and PATCH. These four services allow for the retrieval, creation, complete update, and partial update of groups.

Authentication - Use Basic Authentication for this API.

Below is the list of possible global permissions.

Object Type

Action Type

Object Type

Action Type

PROJECT

PAGEVIEW

APPROVAL

READ, UPDATE

WINDOW

READ, UPDATE

NOTIFICATION

READ, UPDATE, DELETE

WORKFLOW

READ, UPDATE

REPORT

READ

ENVINSTANCE

READ, UPDATE

ENVIRONMENT

READ, UPDATE

INSTANCE

READ, UPDATE

ENDPOINT

READ, UPDATE

SCHEDULEDTASK

READ, UPDATE

PLUGIN

READ, UPLOAD

PROPERTYSET

READ

DEFAULTS

READ, UPDATE

FLEXFIELDS

READ, UPDATE

TEMPLATE

READ, UPDATE

USER

READ

GROUP

READ

TESTTOOL

READ, UPDATE

TESTTYPE

READ, UPDATE

ISSUETRACKINGSYSTEM

READ, UPDATE

CHANGEMANAGEMENTSYSTEM

READ, UPDATE

RELEASE

READ, UPDATE, CREATESNAPSHOT, CONFIGUREPROJECTLIST, CONFIGUREPIPLINE, CONFIGURECMS, MANAGELIFECYCLE, GRANTPERMISSIONS

PIPELINE

READ, UPDATE

GET

There are two implementations of GET. One will find a group with the given Id and return the JSON representation of the group . The other will find a list of groups matching the parameters supplied to it.

GET by ID

This GET service will find a group with the given Id and return the JSON representation of the object. 

API URL

http://host:port/flexdeploy/rest/v1/administration/security/group/{Id}

Request

Parameter

Type

Required

Description

Parameter

Type

Required

Description

Id

URL

Yes

This is a URL parameter for the Id which is used to find and return a group

Response

AttributesTypeDescription
descriptionStringThe description of the group.
isFlexDeployAdministratorBooleanThe boolean representing whether the group is a Flex Deploy Administrator. If isFlexDeployAdministrator is updated to null it will default to false.
groupIdLongThe unique Id of the group.
groupNameStringThe unique name of the group.
isActiveBooleanThe boolean representing whether the group is active. If isActive is updated to null it will default to true.
globalPermissionsList<GlobalPermission>The list of global permissions associated with the group
deploymentPermissionsList<DeploymentPermission>The list of deployment permissions associated with the group

Each GlobalPermission in the list of globalpermissions contains these attributes.

AttributesTypeDescription
objectTypeStringThe object type of the global permission
actionTypeStringThe action type of the global permission

Each DeploymenPermission in the list of deploymentPermissions contains these attributes.

AttributesTypeDescription
environmentsList<Long>The list of environment Ids associated with the deployment permissions
allEnvironmentsBooleanThe boolean representing whether the group is able to deploy all environments or not. If allEnvironments is updated to null it will default to false.

Example

If we had a group in our database with an Id of 10000 and had the following attributes

Group - 10000
{ "description": "test", "isFlexDeployAdministrator": false, "groupId": 10000, "groupName": "test", "isActive": true, "globalPermissions": [ { "objectType": "WORKFLOW", "actionType": "READ" }], "deploymentPermissions": {"environments": [ 18605, 20610 ], "allEnvironments":false } }

When we run a GET request at the following URL

http://host:port/flexdeploy/rest/v1/administration/security/group/10000

The following macros are not currently supported in the footer:
  • style