Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

User Group

This contains APIs related to User Group as defined in Harness

Check user membership

get

Check if the user is part of the user group in an account/org/project

Path parameters
identifierstringRequired

Identifier of the user group

userIdentifierstringRequired

Identifier of the user

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/user-groups/{identifier}/member/{userIdentifier}
GET /gateway/ng/api/user-groups/{identifier}/member/{userIdentifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Add user to User Group

put

Add a user to the user group in an account/org/project

Path parameters
identifierstringRequired

Identifier of the user group

userIdentifierstringRequired

Identifier of the user

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/user-groups/{identifier}/member/{userIdentifier}
PUT /gateway/ng/api/user-groups/{identifier}/member/{userIdentifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Remove user from User Group

delete

Remove a user from the user group in an account/org/project

Path parameters
identifierstringRequired

Identifier of the user group

userIdentifierstringRequired

Identifier of the user

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/user-groups/{identifier}/member/{userIdentifier}
DELETE /gateway/ng/api/user-groups/{identifier}/member/{userIdentifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}
Deprecated

Copy User Group

put

Copy a User Group in an account/org/project

Query parameters
accountIdentifierstring · min: 1 · max: 2147483647Required

Account Identifier for the Entity.

groupIdentifierstringRequired

groupIdentifier

Bodyobject · Scope[]
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/user-groups/copy
PUT /gateway/ng/api/user-groups/copy?accountIdentifier=text&groupIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 80

[
  {
    "accountIdentifier": "text",
    "orgIdentifier": "text",
    "projectIdentifier": "text"
  }
]
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

List the User Groups in an account/org/project

get

List User Groups

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

searchTermstringOptional

Search filter which matches by user group name/identifier

filterTypestring · enumOptionalDefault: EXCLUDE_INHERITED_GROUPSPossible values:
ssoGroupIdstring[]Optional
pageIndexinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
pageSizeinteger · int32 · max: 100Optional

Results per page(max 100)Default Value: 50

Default: 50
pageTokenstringOptional

Page Token of the next results to fetch.Default Value: ''

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/user-groups
GET /gateway/ng/api/user-groups?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Create User Group

post

Create a User Group in an account/org/project

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body

User Group details defined in Harness.

accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

identifierstringRequired

Identifier of the UserGroup.

namestringRequired

Name of the UserGroup.

usersstring[]Optional

List of users ids in the UserGroup.

linkedSsoIdstringOptional

Identifier of the linked SSO.

linkedSsoDisplayNamestringOptional

Name of the linked SSO.

ssoGroupIdstringOptional

Identifier of the userGroup in SSO.

ssoGroupNamestringOptional

Name of the SSO userGroup.

linkedSsoTypestringOptional

Type of linked SSO

externallyManagedbooleanOptional

Specifies whether or not the userGroup is externally managed.

descriptionstring · max: 1024Optional

Description of the entity

harnessManagedbooleanOptional

Specifies whether or not the userGroup is managed by harness.

ssoLinkedbooleanOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/user-groups
POST /gateway/ng/api/user-groups?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 14981

{
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "identifier": "text",
  "name": "text",
  "users": [
    "text"
  ],
  "notificationConfigs": [
    {
      "type": "EMAIL"
    }
  ],
  "linkedSsoId": "text",
  "linkedSsoDisplayName": "text",
  "ssoGroupId": "text",
  "ssoGroupName": "text",
  "linkedSsoType": "text",
  "externallyManaged": true,
  "description": "text",
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "harnessManaged": true,
  "governanceMetadata": {
    "unknownFields": {
      "empty": true,
      "defaultInstanceForType": {
        "empty": true,
        "defaultInstanceForType": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "parserForType": {},
        "serializedSize": 1,
        "serializedSizeAsMessageSet": 1,
        "initialized": true
      },
      "parserForType": {},
      "serializedSize": 1,
      "serializedSizeAsMessageSet": 1,
      "initialized": true
    },
    "message": "text",
    "id": "text",
    "type": "text",
    "timestamp": 1,
    "projectId": "text",
    "status": "text",
    "entity": "text",
    "action": "text",
    "defaultInstanceForType": {
      "unknownFields": {
        "empty": true,
        "defaultInstanceForType": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": "[Circular Reference]",
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "parserForType": {},
        "serializedSize": 1,
        "serializedSizeAsMessageSet": 1,
        "initialized": true
      },
      "message": "text",
      "id": "text",
      "type": "text",
      "timestamp": 1,
      "projectId": "text",
      "status": "text",
      "entity": "text",
      "action": "text",
      "defaultInstanceForType": {
        "unknownFields": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": "[Circular Reference]",
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "message": "text",
        "id": "text",
        "type": "text",
        "timestamp": 1,
        "projectId": "text",
        "status": "text",
        "entity": "text",
        "action": "text",
        "defaultInstanceForType": {
          "unknownFields": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": {
                  "empty": true,
                  "defaultInstanceForType": "[Circular Reference]",
                  "parserForType": {},
                  "serializedSize": 1,
                  "serializedSizeAsMessageSet": 1,
                  "initialized": true
                },
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "message": "text",
          "id": "text",
          "type": "text",
          "timestamp": 1,
          "projectId": "text",
          "status": "text",
          "entity": "text",
          "action": "text",
          "defaultInstanceForType": {
            "unknownFields": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": {
                  "empty": true,
                  "defaultInstanceForType": {
                    "empty": true,
                    "defaultInstanceForType": "[Circular Reference]",
                    "parserForType": {},
                    "serializedSize": 1,
                    "serializedSizeAsMessageSet": 1,
                    "initialized": true
                  },
                  "parserForType": {},
                  "serializedSize": 1,
                  "serializedSizeAsMessageSet": 1,
                  "initialized": true
                },
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "message": "text",
            "id": "text",
            "type": "text",
            "timestamp": 1,
            "projectId": "text",
            "status": "text",
            "entity": "text",
            "action": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "typeBytes": {
              "empty": true,
              "validUtf8": true
            },
            "messageBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "deny": true,
            "detailsList": "[Circular Reference]",
            "idBytes": {
              "empty": true,
              "validUtf8": true
            },
            "detailsCount": 1,
            "detailsOrBuilderList": "[Circular Reference]",
            "entityBytes": {
              "empty": true,
              "validUtf8": true
            },
            "actionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "initialized": true,
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "initializationErrorString": "text",
            "memoizedSerializedSize": 1
          },
          "parserForType": {},
          "serializedSize": 1,
          "typeBytes": {
            "empty": true,
            "validUtf8": true
          },
          "messageBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "deny": true,
          "detailsList": [
            "[Circular Reference]"
          ],
          "idBytes": {
            "empty": true,
            "validUtf8": true
          },
          "detailsCount": 1,
          "detailsOrBuilderList": [
            "[Circular Reference]"
          ],
          "entityBytes": {
            "empty": true,
            "validUtf8": true
          },
          "actionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "initialized": true,
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": {
            "index": 1,
            "proto": "[Circular Reference]",
            "options": "[Circular Reference]",
            "fullName": "text",
            "file": "[Circular Reference]",
            "containingType": "[Circular Reference]",
            "nestedTypes": "[Circular Reference]",
            "enumTypes": "[Circular Reference]",
            "fields": "[Circular Reference]",
            "extensions": "[Circular Reference]",
            "oneofs": "[Circular Reference]",
            "name": "text",
            "extendable": true,
            "realOneofs": "[Circular Reference]"
          },
          "initializationErrorString": "text",
          "memoizedSerializedSize": 1
        },
        "parserForType": {},
        "serializedSize": 1,
        "typeBytes": {
          "empty": true,
          "validUtf8": true
        },
        "messageBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "deny": true,
        "detailsList": [
          {
            "unknownFields": "[Circular Reference]",
            "description": "text",
            "projectId": "text",
            "status": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "identifierBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "policySetIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "deny": true,
            "policyMetadataList": "[Circular Reference]",
            "policyMetadataCount": 1,
            "policyMetadataOrBuilderList": "[Circular Reference]",
            "policySetName": "text",
            "policySetNameBytes": {
              "empty": true,
              "validUtf8": true
            },
            "descriptionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "policySetId": "text",
            "initialized": true,
            "identifier": "text",
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "initializationErrorString": "text",
            "memoizedSerializedSize": 1
          }
        ],
        "idBytes": {
          "empty": true,
          "validUtf8": true
        },
        "detailsCount": 1,
        "detailsOrBuilderList": [
          {
            "description": "text",
            "projectId": "text",
            "status": "text",
            "identifierBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "policySetIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "deny": true,
            "policyMetadataList": "[Circular Reference]",
            "policyMetadataCount": 1,
            "policyMetadataOrBuilderList": "[Circular Reference]",
            "policySetName": "text",
            "policySetNameBytes": {
              "empty": true,
              "validUtf8": true
            },
            "descriptionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "policySetId": "text",
            "identifier": "text",
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "unknownFields": "[Circular Reference]",
            "initializationErrorString": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "initialized": true
          }
        ],
        "entityBytes": {
          "empty": true,
          "validUtf8": true
        },
        "actionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "initialized": true,
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": {
          "index": 1,
          "proto": "[Circular Reference]",
          "options": "[Circular Reference]",
          "fullName": "text",
          "file": "[Circular Reference]",
          "containingType": "[Circular Reference]",
          "nestedTypes": "[Circular Reference]",
          "enumTypes": "[Circular Reference]",
          "fields": "[Circular Reference]",
          "extensions": "[Circular Reference]",
          "oneofs": "[Circular Reference]",
          "name": "text",
          "extendable": true,
          "realOneofs": "[Circular Reference]"
        },
        "initializationErrorString": "text",
        "memoizedSerializedSize": 1
      },
      "parserForType": {},
      "serializedSize": 1,
      "typeBytes": {
        "empty": true,
        "validUtf8": true
      },
      "messageBytes": {
        "empty": true,
        "validUtf8": true
      },
      "statusBytes": {
        "empty": true,
        "validUtf8": true
      },
      "accountId": "text",
      "accountIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "orgId": "text",
      "orgIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "projectIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "created": 1,
      "deny": true,
      "detailsList": [
        {
          "unknownFields": "[Circular Reference]",
          "description": "text",
          "projectId": "text",
          "status": "text",
          "defaultInstanceForType": "[Circular Reference]",
          "parserForType": {},
          "serializedSize": 1,
          "identifierBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "policySetIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "deny": true,
          "policyMetadataList": "[Circular Reference]",
          "policyMetadataCount": 1,
          "policyMetadataOrBuilderList": "[Circular Reference]",
          "policySetName": "text",
          "policySetNameBytes": {
            "empty": true,
            "validUtf8": true
          },
          "descriptionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "policySetId": "text",
          "initialized": true,
          "identifier": "text",
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": "[Circular Reference]",
          "initializationErrorString": "text",
          "memoizedSerializedSize": 1
        }
      ],
      "idBytes": {
        "empty": true,
        "validUtf8": true
      },
      "detailsCount": 1,
      "detailsOrBuilderList": [
        {
          "description": "text",
          "projectId": "text",
          "status": "text",
          "identifierBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "policySetIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "deny": true,
          "policyMetadataList": "[Circular Reference]",
          "policyMetadataCount": 1,
          "policyMetadataOrBuilderList": "[Circular Reference]",
          "policySetName": "text",
          "policySetNameBytes": {
            "empty": true,
            "validUtf8": true
          },
          "descriptionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "policySetId": "text",
          "identifier": "text",
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": "[Circular Reference]",
          "unknownFields": "[Circular Reference]",
          "initializationErrorString": "text",
          "defaultInstanceForType": "[Circular Reference]",
          "initialized": true
        }
      ],
      "entityBytes": {
        "empty": true,
        "validUtf8": true
      },
      "actionBytes": {
        "empty": true,
        "validUtf8": true
      },
      "initialized": true,
      "allFields": {
        "ANY_ADDITIONAL_PROPERTY": {}
      },
      "descriptorForType": {
        "index": 1,
        "proto": "[Circular Reference]",
        "options": "[Circular Reference]",
        "fullName": "text",
        "file": "[Circular Reference]",
        "containingType": "[Circular Reference]",
        "nestedTypes": "[Circular Reference]",
        "enumTypes": "[Circular Reference]",
        "fields": "[Circular Reference]",
        "extensions": "[Circular Reference]",
        "oneofs": "[Circular Reference]",
        "name": "text",
        "extendable": true,
        "realOneofs": "[Circular Reference]"
      },
      "initializationErrorString": "text",
      "memoizedSerializedSize": 1
    },
    "parserForType": {},
    "serializedSize": 1,
    "typeBytes": {
      "empty": true,
      "validUtf8": true
    },
    "messageBytes": {
      "empty": true,
      "validUtf8": true
    },
    "statusBytes": {
      "empty": true,
      "validUtf8": true
    },
    "accountId": "text",
    "accountIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "orgId": "text",
    "orgIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "projectIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "created": 1,
    "deny": true,
    "detailsList": [
      {
        "unknownFields": "[Circular Reference]",
        "description": "text",
        "projectId": "text",
        "status": "text",
        "defaultInstanceForType": "[Circular Reference]",
        "parserForType": {},
        "serializedSize": 1,
        "identifierBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "policySetIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "deny": true,
        "policyMetadataList": "[Circular Reference]",
        "policyMetadataCount": 1,
        "policyMetadataOrBuilderList": "[Circular Reference]",
        "policySetName": "text",
        "policySetNameBytes": {
          "empty": true,
          "validUtf8": true
        },
        "descriptionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "policySetId": "text",
        "initialized": true,
        "identifier": "text",
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": "[Circular Reference]",
        "initializationErrorString": "text",
        "memoizedSerializedSize": 1
      }
    ],
    "idBytes": {
      "empty": true,
      "validUtf8": true
    },
    "detailsCount": 1,
    "detailsOrBuilderList": [
      {
        "description": "text",
        "projectId": "text",
        "status": "text",
        "identifierBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "policySetIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "deny": true,
        "policyMetadataList": "[Circular Reference]",
        "policyMetadataCount": 1,
        "policyMetadataOrBuilderList": "[Circular Reference]",
        "policySetName": "text",
        "policySetNameBytes": {
          "empty": true,
          "validUtf8": true
        },
        "descriptionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "policySetId": "text",
        "identifier": "text",
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": "[Circular Reference]",
        "unknownFields": "[Circular Reference]",
        "initializationErrorString": "text",
        "defaultInstanceForType": "[Circular Reference]",
        "initialized": true
      }
    ],
    "entityBytes": {
      "empty": true,
      "validUtf8": true
    },
    "actionBytes": {
      "empty": true,
      "validUtf8": true
    },
    "initialized": true,
    "allFields": {
      "ANY_ADDITIONAL_PROPERTY": {}
    },
    "descriptorForType": {
      "index": 1,
      "proto": "[Circular Reference]",
      "options": "[Circular Reference]",
      "fullName": "text",
      "file": "[Circular Reference]",
      "containingType": "[Circular Reference]",
      "nestedTypes": "[Circular Reference]",
      "enumTypes": "[Circular Reference]",
      "fields": "[Circular Reference]",
      "extensions": "[Circular Reference]",
      "oneofs": "[Circular Reference]",
      "name": "text",
      "extendable": true,
      "realOneofs": "[Circular Reference]"
    },
    "initializationErrorString": "text",
    "memoizedSerializedSize": 1
  },
  "ssoLinked": true
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Update User Group

put

Update a User Group in an account/org/project

Query parameters
accountIdentifierstring · min: 1 · max: 2147483647Required

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body

User Group details defined in Harness.

accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

identifierstringRequired

Identifier of the UserGroup.

namestringRequired

Name of the UserGroup.

usersstring[]Optional

List of users ids in the UserGroup.

linkedSsoIdstringOptional

Identifier of the linked SSO.

linkedSsoDisplayNamestringOptional

Name of the linked SSO.

ssoGroupIdstringOptional

Identifier of the userGroup in SSO.

ssoGroupNamestringOptional

Name of the SSO userGroup.

linkedSsoTypestringOptional

Type of linked SSO

externallyManagedbooleanOptional

Specifies whether or not the userGroup is externally managed.

descriptionstring · max: 1024Optional

Description of the entity

harnessManagedbooleanOptional

Specifies whether or not the userGroup is managed by harness.

ssoLinkedbooleanOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/user-groups
PUT /gateway/ng/api/user-groups?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 14981

{
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "identifier": "text",
  "name": "text",
  "users": [
    "text"
  ],
  "notificationConfigs": [
    {
      "type": "EMAIL"
    }
  ],
  "linkedSsoId": "text",
  "linkedSsoDisplayName": "text",
  "ssoGroupId": "text",
  "ssoGroupName": "text",
  "linkedSsoType": "text",
  "externallyManaged": true,
  "description": "text",
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "harnessManaged": true,
  "governanceMetadata": {
    "unknownFields": {
      "empty": true,
      "defaultInstanceForType": {
        "empty": true,
        "defaultInstanceForType": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "parserForType": {},
        "serializedSize": 1,
        "serializedSizeAsMessageSet": 1,
        "initialized": true
      },
      "parserForType": {},
      "serializedSize": 1,
      "serializedSizeAsMessageSet": 1,
      "initialized": true
    },
    "message": "text",
    "id": "text",
    "type": "text",
    "timestamp": 1,
    "projectId": "text",
    "status": "text",
    "entity": "text",
    "action": "text",
    "defaultInstanceForType": {
      "unknownFields": {
        "empty": true,
        "defaultInstanceForType": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": "[Circular Reference]",
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "parserForType": {},
        "serializedSize": 1,
        "serializedSizeAsMessageSet": 1,
        "initialized": true
      },
      "message": "text",
      "id": "text",
      "type": "text",
      "timestamp": 1,
      "projectId": "text",
      "status": "text",
      "entity": "text",
      "action": "text",
      "defaultInstanceForType": {
        "unknownFields": {
          "empty": true,
          "defaultInstanceForType": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": "[Circular Reference]",
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "parserForType": {},
          "serializedSize": 1,
          "serializedSizeAsMessageSet": 1,
          "initialized": true
        },
        "message": "text",
        "id": "text",
        "type": "text",
        "timestamp": 1,
        "projectId": "text",
        "status": "text",
        "entity": "text",
        "action": "text",
        "defaultInstanceForType": {
          "unknownFields": {
            "empty": true,
            "defaultInstanceForType": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": {
                  "empty": true,
                  "defaultInstanceForType": "[Circular Reference]",
                  "parserForType": {},
                  "serializedSize": 1,
                  "serializedSizeAsMessageSet": 1,
                  "initialized": true
                },
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "parserForType": {},
            "serializedSize": 1,
            "serializedSizeAsMessageSet": 1,
            "initialized": true
          },
          "message": "text",
          "id": "text",
          "type": "text",
          "timestamp": 1,
          "projectId": "text",
          "status": "text",
          "entity": "text",
          "action": "text",
          "defaultInstanceForType": {
            "unknownFields": {
              "empty": true,
              "defaultInstanceForType": {
                "empty": true,
                "defaultInstanceForType": {
                  "empty": true,
                  "defaultInstanceForType": {
                    "empty": true,
                    "defaultInstanceForType": "[Circular Reference]",
                    "parserForType": {},
                    "serializedSize": 1,
                    "serializedSizeAsMessageSet": 1,
                    "initialized": true
                  },
                  "parserForType": {},
                  "serializedSize": 1,
                  "serializedSizeAsMessageSet": 1,
                  "initialized": true
                },
                "parserForType": {},
                "serializedSize": 1,
                "serializedSizeAsMessageSet": 1,
                "initialized": true
              },
              "parserForType": {},
              "serializedSize": 1,
              "serializedSizeAsMessageSet": 1,
              "initialized": true
            },
            "message": "text",
            "id": "text",
            "type": "text",
            "timestamp": 1,
            "projectId": "text",
            "status": "text",
            "entity": "text",
            "action": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "typeBytes": {
              "empty": true,
              "validUtf8": true
            },
            "messageBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "deny": true,
            "detailsList": "[Circular Reference]",
            "idBytes": {
              "empty": true,
              "validUtf8": true
            },
            "detailsCount": 1,
            "detailsOrBuilderList": "[Circular Reference]",
            "entityBytes": {
              "empty": true,
              "validUtf8": true
            },
            "actionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "initialized": true,
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "initializationErrorString": "text",
            "memoizedSerializedSize": 1
          },
          "parserForType": {},
          "serializedSize": 1,
          "typeBytes": {
            "empty": true,
            "validUtf8": true
          },
          "messageBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "deny": true,
          "detailsList": [
            "[Circular Reference]"
          ],
          "idBytes": {
            "empty": true,
            "validUtf8": true
          },
          "detailsCount": 1,
          "detailsOrBuilderList": [
            "[Circular Reference]"
          ],
          "entityBytes": {
            "empty": true,
            "validUtf8": true
          },
          "actionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "initialized": true,
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": {
            "index": 1,
            "proto": "[Circular Reference]",
            "options": "[Circular Reference]",
            "fullName": "text",
            "file": "[Circular Reference]",
            "containingType": "[Circular Reference]",
            "nestedTypes": "[Circular Reference]",
            "enumTypes": "[Circular Reference]",
            "fields": "[Circular Reference]",
            "extensions": "[Circular Reference]",
            "oneofs": "[Circular Reference]",
            "name": "text",
            "extendable": true,
            "realOneofs": "[Circular Reference]"
          },
          "initializationErrorString": "text",
          "memoizedSerializedSize": 1
        },
        "parserForType": {},
        "serializedSize": 1,
        "typeBytes": {
          "empty": true,
          "validUtf8": true
        },
        "messageBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "deny": true,
        "detailsList": [
          {
            "unknownFields": "[Circular Reference]",
            "description": "text",
            "projectId": "text",
            "status": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "parserForType": {},
            "serializedSize": 1,
            "identifierBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "policySetIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "deny": true,
            "policyMetadataList": "[Circular Reference]",
            "policyMetadataCount": 1,
            "policyMetadataOrBuilderList": "[Circular Reference]",
            "policySetName": "text",
            "policySetNameBytes": {
              "empty": true,
              "validUtf8": true
            },
            "descriptionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "policySetId": "text",
            "initialized": true,
            "identifier": "text",
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "initializationErrorString": "text",
            "memoizedSerializedSize": 1
          }
        ],
        "idBytes": {
          "empty": true,
          "validUtf8": true
        },
        "detailsCount": 1,
        "detailsOrBuilderList": [
          {
            "description": "text",
            "projectId": "text",
            "status": "text",
            "identifierBytes": {
              "empty": true,
              "validUtf8": true
            },
            "statusBytes": {
              "empty": true,
              "validUtf8": true
            },
            "accountId": "text",
            "accountIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "orgId": "text",
            "orgIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "projectIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "created": 1,
            "policySetIdBytes": {
              "empty": true,
              "validUtf8": true
            },
            "deny": true,
            "policyMetadataList": "[Circular Reference]",
            "policyMetadataCount": 1,
            "policyMetadataOrBuilderList": "[Circular Reference]",
            "policySetName": "text",
            "policySetNameBytes": {
              "empty": true,
              "validUtf8": true
            },
            "descriptionBytes": {
              "empty": true,
              "validUtf8": true
            },
            "policySetId": "text",
            "identifier": "text",
            "allFields": {
              "ANY_ADDITIONAL_PROPERTY": {}
            },
            "descriptorForType": "[Circular Reference]",
            "unknownFields": "[Circular Reference]",
            "initializationErrorString": "text",
            "defaultInstanceForType": "[Circular Reference]",
            "initialized": true
          }
        ],
        "entityBytes": {
          "empty": true,
          "validUtf8": true
        },
        "actionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "initialized": true,
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": {
          "index": 1,
          "proto": "[Circular Reference]",
          "options": "[Circular Reference]",
          "fullName": "text",
          "file": "[Circular Reference]",
          "containingType": "[Circular Reference]",
          "nestedTypes": "[Circular Reference]",
          "enumTypes": "[Circular Reference]",
          "fields": "[Circular Reference]",
          "extensions": "[Circular Reference]",
          "oneofs": "[Circular Reference]",
          "name": "text",
          "extendable": true,
          "realOneofs": "[Circular Reference]"
        },
        "initializationErrorString": "text",
        "memoizedSerializedSize": 1
      },
      "parserForType": {},
      "serializedSize": 1,
      "typeBytes": {
        "empty": true,
        "validUtf8": true
      },
      "messageBytes": {
        "empty": true,
        "validUtf8": true
      },
      "statusBytes": {
        "empty": true,
        "validUtf8": true
      },
      "accountId": "text",
      "accountIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "orgId": "text",
      "orgIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "projectIdBytes": {
        "empty": true,
        "validUtf8": true
      },
      "created": 1,
      "deny": true,
      "detailsList": [
        {
          "unknownFields": "[Circular Reference]",
          "description": "text",
          "projectId": "text",
          "status": "text",
          "defaultInstanceForType": "[Circular Reference]",
          "parserForType": {},
          "serializedSize": 1,
          "identifierBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "policySetIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "deny": true,
          "policyMetadataList": "[Circular Reference]",
          "policyMetadataCount": 1,
          "policyMetadataOrBuilderList": "[Circular Reference]",
          "policySetName": "text",
          "policySetNameBytes": {
            "empty": true,
            "validUtf8": true
          },
          "descriptionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "policySetId": "text",
          "initialized": true,
          "identifier": "text",
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": "[Circular Reference]",
          "initializationErrorString": "text",
          "memoizedSerializedSize": 1
        }
      ],
      "idBytes": {
        "empty": true,
        "validUtf8": true
      },
      "detailsCount": 1,
      "detailsOrBuilderList": [
        {
          "description": "text",
          "projectId": "text",
          "status": "text",
          "identifierBytes": {
            "empty": true,
            "validUtf8": true
          },
          "statusBytes": {
            "empty": true,
            "validUtf8": true
          },
          "accountId": "text",
          "accountIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "orgId": "text",
          "orgIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "projectIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "created": 1,
          "policySetIdBytes": {
            "empty": true,
            "validUtf8": true
          },
          "deny": true,
          "policyMetadataList": "[Circular Reference]",
          "policyMetadataCount": 1,
          "policyMetadataOrBuilderList": "[Circular Reference]",
          "policySetName": "text",
          "policySetNameBytes": {
            "empty": true,
            "validUtf8": true
          },
          "descriptionBytes": {
            "empty": true,
            "validUtf8": true
          },
          "policySetId": "text",
          "identifier": "text",
          "allFields": {
            "ANY_ADDITIONAL_PROPERTY": {}
          },
          "descriptorForType": "[Circular Reference]",
          "unknownFields": "[Circular Reference]",
          "initializationErrorString": "text",
          "defaultInstanceForType": "[Circular Reference]",
          "initialized": true
        }
      ],
      "entityBytes": {
        "empty": true,
        "validUtf8": true
      },
      "actionBytes": {
        "empty": true,
        "validUtf8": true
      },
      "initialized": true,
      "allFields": {
        "ANY_ADDITIONAL_PROPERTY": {}
      },
      "descriptorForType": {
        "index": 1,
        "proto": "[Circular Reference]",
        "options": "[Circular Reference]",
        "fullName": "text",
        "file": "[Circular Reference]",
        "containingType": "[Circular Reference]",
        "nestedTypes": "[Circular Reference]",
        "enumTypes": "[Circular Reference]",
        "fields": "[Circular Reference]",
        "extensions": "[Circular Reference]",
        "oneofs": "[Circular Reference]",
        "name": "text",
        "extendable": true,
        "realOneofs": "[Circular Reference]"
      },
      "initializationErrorString": "text",
      "memoizedSerializedSize": 1
    },
    "parserForType": {},
    "serializedSize": 1,
    "typeBytes": {
      "empty": true,
      "validUtf8": true
    },
    "messageBytes": {
      "empty": true,
      "validUtf8": true
    },
    "statusBytes": {
      "empty": true,
      "validUtf8": true
    },
    "accountId": "text",
    "accountIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "orgId": "text",
    "orgIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "projectIdBytes": {
      "empty": true,
      "validUtf8": true
    },
    "created": 1,
    "deny": true,
    "detailsList": [
      {
        "unknownFields": "[Circular Reference]",
        "description": "text",
        "projectId": "text",
        "status": "text",
        "defaultInstanceForType": "[Circular Reference]",
        "parserForType": {},
        "serializedSize": 1,
        "identifierBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "policySetIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "deny": true,
        "policyMetadataList": "[Circular Reference]",
        "policyMetadataCount": 1,
        "policyMetadataOrBuilderList": "[Circular Reference]",
        "policySetName": "text",
        "policySetNameBytes": {
          "empty": true,
          "validUtf8": true
        },
        "descriptionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "policySetId": "text",
        "initialized": true,
        "identifier": "text",
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": "[Circular Reference]",
        "initializationErrorString": "text",
        "memoizedSerializedSize": 1
      }
    ],
    "idBytes": {
      "empty": true,
      "validUtf8": true
    },
    "detailsCount": 1,
    "detailsOrBuilderList": [
      {
        "description": "text",
        "projectId": "text",
        "status": "text",
        "identifierBytes": {
          "empty": true,
          "validUtf8": true
        },
        "statusBytes": {
          "empty": true,
          "validUtf8": true
        },
        "accountId": "text",
        "accountIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "orgId": "text",
        "orgIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "projectIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "created": 1,
        "policySetIdBytes": {
          "empty": true,
          "validUtf8": true
        },
        "deny": true,
        "policyMetadataList": "[Circular Reference]",
        "policyMetadataCount": 1,
        "policyMetadataOrBuilderList": "[Circular Reference]",
        "policySetName": "text",
        "policySetNameBytes": {
          "empty": true,
          "validUtf8": true
        },
        "descriptionBytes": {
          "empty": true,
          "validUtf8": true
        },
        "policySetId": "text",
        "identifier": "text",
        "allFields": {
          "ANY_ADDITIONAL_PROPERTY": {}
        },
        "descriptorForType": "[Circular Reference]",
        "unknownFields": "[Circular Reference]",
        "initializationErrorString": "text",
        "defaultInstanceForType": "[Circular Reference]",
        "initialized": true
      }
    ],
    "entityBytes": {
      "empty": true,
      "validUtf8": true
    },
    "actionBytes": {
      "empty": true,
      "validUtf8": true
    },
    "initialized": true,
    "allFields": {
      "ANY_ADDITIONAL_PROPERTY": {}
    },
    "descriptorForType": {
      "index": 1,
      "proto": "[Circular Reference]",
      "options": "[Circular Reference]",
      "fullName": "text",
      "file": "[Circular Reference]",
      "containingType": "[Circular Reference]",
      "nestedTypes": "[Circular Reference]",
      "enumTypes": "[Circular Reference]",
      "fields": "[Circular Reference]",
      "extensions": "[Circular Reference]",
      "oneofs": "[Circular Reference]",
      "name": "text",
      "extendable": true,
      "realOneofs": "[Circular Reference]"
    },
    "initializationErrorString": "text",
    "memoizedSerializedSize": 1
  },
  "ssoLinked": true
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Get User Group

get

Get a User Group in an account/org/project

Path parameters
identifierstring · min: 1 · max: 2147483647Required

Identifier of the user group

Query parameters
accountIdentifierstring · min: 1 · max: 2147483647Required

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/user-groups/{identifier}
GET /gateway/ng/api/user-groups/{identifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Delete a User Group in an account/org/project

delete

Delete User Group

Path parameters
identifierstring · min: 1 · max: 2147483647Required

Identifier of the user group

Query parameters
accountIdentifierstring · min: 1 · max: 2147483647Required

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/user-groups/{identifier}
DELETE /gateway/ng/api/user-groups/{identifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Get Inheriting Child Scopes

get

List the Child Scopes inheriting this User Group

Path parameters
identifierstringRequired

Identifier of the user group

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/user-groups/{identifier}/scopes
GET /gateway/ng/api/user-groups/{identifier}/scopes?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

List users in User Group

post

List the users in a User Group in an account/org/project

Path parameters
identifierstringRequired

Identifier of the user group

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

pageIndexinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
pageSizeinteger · int32 · max: 100Optional

Results per page(max 100)Default Value: 50

Default: 50
pageTokenstringOptional

Page Token of the next results to fetch.Default Value: ''

Body
searchTermstringOptional

This string will be used to filter the results. Details of all the users having this string in their name or email address will be filtered.

identifiersstring[]Optional

Filter by User Identifiers

emailsstring[]Optional

Filter by User Emails

parentFilterstring · enumOptionalPossible values:
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/user-groups/{identifier}/users
POST /gateway/ng/api/user-groups/{identifier}/users?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 96

{
  "searchTerm": "text",
  "identifiers": [
    "text"
  ],
  "emails": [
    "text"
  ],
  "parentFilter": "NO_PARENT_SCOPES"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}
put
Path parameters
userGroupIdstringRequired

Identifier of the user group

ldapIdstringRequired

LDAP entity identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
ldapGroupDNstringRequired
ldapGroupNamestringRequired
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/user-groups/{userGroupId}/link/ldap/{ldapId}
PUT /gateway/ng/api/user-groups/{userGroupId}/link/ldap/{ldapId}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 45

{
  "ldapGroupDN": "text",
  "ldapGroupName": "text"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}
put
Path parameters
userGroupIdstringRequired

Identifier of the user group

providerIdstringRequired

OIDC Group entity identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
oidcGroupNamestring · min: 1Required
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/user-groups/{userGroupId}/link/oidc/{providerId}
PUT /gateway/ng/api/user-groups/{userGroupId}/link/oidc/{providerId}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "oidcGroupName": "text"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}
put
Path parameters
userGroupIdstringRequired

Identifier of the user group

samlIdstringRequired

Saml Group entity identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
samlGroupNamestringRequired
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/user-groups/{userGroupId}/link/saml/{samlId}
PUT /gateway/ng/api/user-groups/{userGroupId}/link/saml/{samlId}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "samlGroupName": "text"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

List User Groups by filter

post

List the User Groups selected by a filter in an account/org/project. This api supports maximum of 10K User Group in response.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Body

This is the view of the UserGroupFilter entity defined in Harness

databaseIdFilterstring[]Optional

Filter by the internal database ids of user group

identifierFilterstring[]Optional

Filter by the user group identifier

userIdentifierFilterstring[]Optional

Filter by the users present in the user group

accountIdentifierstringRequired

Filter by account using account identifier

orgIdentifierstringOptional

Filter by organization using account identifier

projectIdentifierstringOptional

Filter by project using account identifier

searchTermstringOptional

Filter by search term matching entities by name/identifier

filterTypestring · enumOptional

Filter by user group filterType

Possible values:
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/user-groups/batch
POST /gateway/ng/api/user-groups/batch?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 226

{
  "databaseIdFilter": [
    "text"
  ],
  "identifierFilter": [
    "text"
  ],
  "userIdentifierFilter": [
    "text"
  ],
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "searchTerm": "text",
  "filterType": "INCLUDE_INHERITED_GROUPS"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Get filtered User Groups

post

List the User Groups selected by a filter in an account/org/project

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

pageIndexinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
pageSizeinteger · int32 · max: 100Optional

Results per page(max 100)Default Value: 50

Default: 50
pageTokenstringOptional

Page Token of the next results to fetch.Default Value: ''

Body

This is the view of the UserGroupFilter entity defined in Harness

databaseIdFilterstring[]Optional

Filter by the internal database ids of user group

identifierFilterstring[]Optional

Filter by the user group identifier

userIdentifierFilterstring[]Optional

Filter by the users present in the user group

accountIdentifierstringRequired

Filter by account using account identifier

orgIdentifierstringOptional

Filter by organization using account identifier

projectIdentifierstringOptional

Filter by project using account identifier

searchTermstringOptional

Filter by search term matching entities by name/identifier

filterTypestring · enumOptional

Filter by user group filterType

Possible values:
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/user-groups/filter
POST /gateway/ng/api/user-groups/filter?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 226

{
  "databaseIdFilter": [
    "text"
  ],
  "identifierFilter": [
    "text"
  ],
  "userIdentifierFilter": [
    "text"
  ],
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "searchTerm": "text",
  "filterType": "INCLUDE_INHERITED_GROUPS"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}
put
Path parameters
userGroupIdstringRequired

Identifier of the user group

Query parameters
retainMembersbooleanOptional

Retain currently synced members of the user group

accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/user-groups/{userGroupId}/unlink
PUT /gateway/ng/api/user-groups/{userGroupId}/unlink?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Create User Group

post

Create a User Group in an account/org/project

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body

User Group details defined in Harness.

accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

identifierstringRequired

Identifier of the UserGroup.

namestringRequired

Name of the UserGroup.

usersstring[] · max: 5000Optional

List of users emails in the UserGroup. Maximum users can be 5000.

isSsoLinkedbooleanWrite-onlyOptional
linkedSsoIdstringOptional

Identifier of the linked SSO.

linkedSsoDisplayNamestringOptional

Name of the linked SSO.

ssoGroupIdstringOptional

Identifier of the userGroup in SSO.

ssoGroupNamestringOptional

Name of the SSO userGroup.

linkedSsoTypestringOptional

Type of linked SSO

externallyManagedbooleanOptional

Specifies whether or not the userGroup is externally managed.

descriptionstring · max: 1024Optional

Description of the entity

harnessManagedbooleanOptional

Specifies whether or not the userGroup is managed by harness.

ssoLinkedbooleanOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/v2/user-groups
POST /gateway/ng/api/v2/user-groups?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 432

{
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "identifier": "text",
  "name": "text",
  "users": [
    "text"
  ],
  "notificationConfigs": [
    {
      "type": "EMAIL"
    }
  ],
  "isSsoLinked": true,
  "linkedSsoId": "text",
  "linkedSsoDisplayName": "text",
  "ssoGroupId": "text",
  "ssoGroupName": "text",
  "linkedSsoType": "text",
  "externallyManaged": true,
  "description": "text",
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "harnessManaged": true,
  "ssoLinked": true
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Update User Group

put

Update a User Group in an account/org/project

Query parameters
accountIdentifierstring · min: 1 · max: 2147483647Required

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body

User Group details defined in Harness.

accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

identifierstringRequired

Identifier of the UserGroup.

namestringRequired

Name of the UserGroup.

usersstring[] · max: 5000Optional

List of users emails in the UserGroup. Maximum users can be 5000.

isSsoLinkedbooleanWrite-onlyOptional
linkedSsoIdstringOptional

Identifier of the linked SSO.

linkedSsoDisplayNamestringOptional

Name of the linked SSO.

ssoGroupIdstringOptional

Identifier of the userGroup in SSO.

ssoGroupNamestringOptional

Name of the SSO userGroup.

linkedSsoTypestringOptional

Type of linked SSO

externallyManagedbooleanOptional

Specifies whether or not the userGroup is externally managed.

descriptionstring · max: 1024Optional

Description of the entity

harnessManagedbooleanOptional

Specifies whether or not the userGroup is managed by harness.

ssoLinkedbooleanOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/v2/user-groups
PUT /gateway/ng/api/v2/user-groups?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 432

{
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "identifier": "text",
  "name": "text",
  "users": [
    "text"
  ],
  "notificationConfigs": [
    {
      "type": "EMAIL"
    }
  ],
  "isSsoLinked": true,
  "linkedSsoId": "text",
  "linkedSsoDisplayName": "text",
  "ssoGroupId": "text",
  "ssoGroupName": "text",
  "linkedSsoType": "text",
  "externallyManaged": true,
  "description": "text",
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "harnessManaged": true,
  "ssoLinked": true
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Get User Group

get

Get a User Group in an account/org/project

Path parameters
identifierstring · min: 1 · max: 2147483647Required

Identifier of the user group

Query parameters
accountIdentifierstring · min: 1 · max: 2147483647Required

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/v2/user-groups/{identifier}
GET /gateway/ng/api/v2/user-groups/{identifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?