User
This contains APIs related to User as defined in Harness
Adds the user to the specified user group IDs passed in the body and removes all other user groups for user except harness managed user groups
User Identifier
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Adds the user to specified user group IDs and removes all other user groups for user except harness managed user groups
PUT /gateway/ng/api/user/add-user-to-groups/{userId}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"userGroupIdsToAdd": [
"text"
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns list of added users to a given scope
POST /gateway/ng/api/user/users?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 259
{
"emails": [
"text"
],
"roleBindings": [
{
"roleIdentifier": "text",
"roleName": "text",
"roleScopeLevel": "text",
"resourceGroupIdentifier": "text",
"resourceGroupName": "text",
"managedRole": true
}
],
"userGroups": [
"text"
],
"userSettings": [
{
"identifier": "text",
"value": "text"
}
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Updates the User password
Account Identifier for the Entity.
This is the view of the PasswordChange entity defined in Harness
This is the current password.
This is the new password.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns whether the operation is successful or not with readable response.
PUT /gateway/ng/api/user/password?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"currentPassword": "text",
"newPassword": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Check whether the user is last admin at scope or not
User identifier
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns Boolean status whether the user is last admin at scope or not
GET /gateway/ng/api/user/last-admin?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"
}
]
}Disables two-factor-auth for an user in an account
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns user information
PUT /gateway/ng/api/user/disable-two-factor-auth?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"
}
]
}User ID
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Ends active impersonation session for user, if any.
POST /gateway/ng/api/user/endImpersonation/{userId}?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"
}
]
}Returns the user metadata along with rolesAssignments by userId and scope
user Identifier
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the user metadata along with rolesAssignments by userId and scope
GET /gateway/ng/api/user/aggregate/{userId}?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 of all the user's metadata along with rolesAssignments who have access to given scope
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Search term
Page Index of the results to fetch.Default Value: 0
0Results per page(max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns list of all the user's metadata along with rolesAssignments who have access to given scope
POST /gateway/ng/api/user/aggregate?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"resourceGroupIdentifiers": [
"text"
],
"roleIdentifiers": [
"text"
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Gets two factor authentication settings information of the current logged in user
This is the authentication mechanism for the logged-in User. Two-Factor Authentication settings will be fetched for this mechanism.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns current logged in user's two factor authentication info
GET /gateway/ng/api/user/two-factor-auth/{authMechanism}?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"
}
]
}Gets current logged in User information
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns current logged in user info
GET /gateway/ng/api/user/currentUser?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 list of user's for a given scope
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Page Index of the results to fetch.Default Value: 0
0Results per page(max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
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.
Filter by User Identifiers
Filter by User Emails
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the list of user's Metadata for a given scope
POST /gateway/ng/api/user/batch?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"
}
]
}User ID
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
impersonate User
POST /gateway/ng/api/user/impersonate/{userId}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"reasonOfImpersonation": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Updates the User information
User Identifier
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the update User information
PUT /gateway/ng/api/user/{userId}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"name": "text",
"email": "text",
"givenName": "text",
"familyName": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Remove user as the collaborator from the scope
user Identifier
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns Boolean status whether request was successful or not
DELETE /gateway/ng/api/user/{userId}?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"
}
]
}Reset Two-Factor authorization.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully reset two factor authorization for an account
GET /gateway/ng/api/user/reset-two-factor-auth/{userId}?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"
}
]
}unlock user in a given scope
user Identifier
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns user information
PUT /gateway/ng/api/user/unlock-user/{userId}?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"
}
]
}Enables two-factor-auth for an user in an account
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns user information
PUT /gateway/ng/api/user/enable-two-factor-auth?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 131
{
"userId": "text",
"email": "text",
"twoFactorAuthenticationEnabled": true,
"mechanism": "TOTP",
"totpSecretKey": "text",
"totpqrurl": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Updates the User information
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the update User information
PUT /gateway/ng/api/user?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 753
{
"uuid": "text",
"name": "text",
"email": "text",
"token": "text",
"defaultAccountId": "text",
"intent": "text",
"accounts": [
{
"uuid": "text",
"accountName": "text",
"companyName": "text",
"defaultExperience": "NG",
"createdFromNG": true,
"isNextGenEnabled": true,
"nextGenEnabled": true
}
],
"admin": true,
"twoFactorAuthenticationEnabled": true,
"emailVerified": true,
"locked": true,
"disabled": true,
"signupAction": "text",
"edition": "text",
"billingFrequency": "text",
"utmInfo": {
"utmSource": "text",
"utmContent": "text",
"utmMedium": "text",
"utmTerm": "text",
"utmCampaign": "text"
},
"externallyManaged": true,
"givenName": "text",
"familyName": "text",
"externalId": "text",
"createdAt": 1,
"lastUpdatedAt": 1,
"userPreferences": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"isEnrichedInfoCollected": true,
"lastLogin": 1
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?