Authentication Settings
This contains APIs related to Authentication settings as defined in Harness
Returns configured Ldap settings and its details for the account.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns ldap setting
GET /gateway/ng/api/authentication-settings/ldap/settings?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"
}
]
}Creates Ldap settings along with the user, group queries.
Account Identifier for the Entity.
This has the details of LDAP Settings supported in NG.
This is the LDAP setting identifier.
This is the LDAP setting display name.
This is the cron expression in LDAP Settings.
This is the list of iterations for next LDAP sync job.
This tells if LDAP Settings is disabled or not, LDAP sync won't happen in disabled state.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Creates Ldap settings along with the user, group queries
POST /gateway/ng/api/authentication-settings/ldap/settings?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 916
{
"connectionSettings": {
"host": "text",
"port": 1,
"sslEnabled": true,
"referralsEnabled": true,
"maxReferralHops": 1,
"bindDN": "text",
"bindPassword": "text",
"encryptedBindPassword": "text",
"passwordType": "text",
"bindSecret": [
"text"
],
"encryptedBindSecret": "text",
"connectTimeout": 1,
"responseTimeout": 1,
"useRecursiveGroupMembershipSearch": true,
"delegateSelectors": [
"text"
],
"passwordRef": "text",
"accountId": "text",
"settingType": "HOST_CONNECTION_ATTRIBUTES"
},
"identifier": "text",
"userSettingsList": [
{
"baseDN": "text",
"searchFilter": "text",
"uidAttr": "text",
"samAccountNameAttr": "text",
"emailAttr": "text",
"displayNameAttr": "text",
"groupMembershipAttr": "text"
}
],
"groupSettingsList": [
{
"baseDN": "text",
"searchFilter": "text",
"nameAttr": "text",
"descriptionAttr": "text",
"userMembershipAttr": "text",
"referencedUserAttr": "text"
}
],
"displayName": "text",
"cronExpression": "text",
"nextIterations": [
1
],
"disabled": true,
"settingsType": "USER_PASSWORD"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Updates configured Ldap settings along with the user, group queries.
Account Identifier for the Entity.
This has the details of LDAP Settings supported in NG.
This is the LDAP setting identifier.
This is the LDAP setting display name.
This is the cron expression in LDAP Settings.
This is the list of iterations for next LDAP sync job.
This tells if LDAP Settings is disabled or not, LDAP sync won't happen in disabled state.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Updated Ldap settings along with the user, group settings
PUT /gateway/ng/api/authentication-settings/ldap/settings?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 916
{
"connectionSettings": {
"host": "text",
"port": 1,
"sslEnabled": true,
"referralsEnabled": true,
"maxReferralHops": 1,
"bindDN": "text",
"bindPassword": "text",
"encryptedBindPassword": "text",
"passwordType": "text",
"bindSecret": [
"text"
],
"encryptedBindSecret": "text",
"connectTimeout": 1,
"responseTimeout": 1,
"useRecursiveGroupMembershipSearch": true,
"delegateSelectors": [
"text"
],
"passwordRef": "text",
"accountId": "text",
"settingType": "HOST_CONNECTION_ATTRIBUTES"
},
"identifier": "text",
"userSettingsList": [
{
"baseDN": "text",
"searchFilter": "text",
"uidAttr": "text",
"samAccountNameAttr": "text",
"emailAttr": "text",
"displayNameAttr": "text",
"groupMembershipAttr": "text"
}
],
"groupSettingsList": [
{
"baseDN": "text",
"searchFilter": "text",
"nameAttr": "text",
"descriptionAttr": "text",
"userMembershipAttr": "text",
"referencedUserAttr": "text"
}
],
"displayName": "text",
"cronExpression": "text",
"nextIterations": [
1
],
"disabled": true,
"settingsType": "USER_PASSWORD"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Delete configured Ldap settings on this account.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully deleted Ldap settings configured on account
DELETE /gateway/ng/api/authentication-settings/ldap/settings?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"
}
]
}Deletes SAML metadata for the given Account ID.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully deleted SAML meta associated with a SAML setting
DELETE /gateway/ng/api/authentication-settings/delete-saml-metadata?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"
}
]
}Deletes SAML metadata for the given Account and SAML sso id
Saml Settings Identifier
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully deleted SAML meta associated with a SAML SSO setting id
DELETE /gateway/ng/api/authentication-settings/saml-metadata/{samlSSOId}/delete?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"
}
]
}Updates if authentication is enabled or not for given SAML setting in Account ID.
Saml Settings Identifier
Account Identifier for the Entity.
trueBad Request
This is Failure entity as defied in Harness
Internal server error
Successfully updated login allowed status for SAML setting in account
PUT /gateway/ng/api/authentication-settings/saml-metadata-upload/{samlSSOId}/authentication?accountIdentifier=text&enable=true 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 authentication settings for the given Account ID.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully returns authentication settings of an Account
GET /gateway/ng/api/authentication-settings?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 authentication settings version 2 for the given Account ID.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully returns authentication settings of an Account
GET /gateway/ng/api/authentication-settings/v2?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 password strength for the given Account ID.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns password strength of an Account
GET /gateway/ng/api/authentication-settings/login-settings/password-strength?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"
}
]
}Tests SAML connectivity for the given Account ID.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns connectivity status
GET /gateway/ng/api/authentication-settings/saml-login-test?accountId=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"
}
]
}Tests SAML connectivity for the given Account ID and SAML setting.
Saml Settings Identifier
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns connectivity status
GET /gateway/ng/api/authentication-settings/saml-login-test/{samlSSOId}?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"
}
]
}Deletes OAuth settings for a given Account ID.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully removed OAuth settings configured to an account.
DELETE /gateway/ng/api/authentication-settings/oauth/remove-mechanism?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"
}
]
}Enable/disable public access for the given Account ID.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully configured public access for an account
PUT /gateway/ng/api/authentication-settings/public-access?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 4
true{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Sets session timeout of all users for the given Account ID.
Account Identifier for the Entity.
This contains the information about the session timeout for this account in Harness.
Any user of this account will be logged out if there is no activity for this number of minutes
Any user of this account will be logged out after this number of minutes
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully configured session timeout for an account
PUT /gateway/ng/api/authentication-settings/session-timeout-account-level?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"sessionTimeOutInMinutes": 1,
"absoluteSessionTimeOutInMinutes": 1
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Sets Two-Factor authorization for the given Account ID.
Account Identifier for the Entity.
This contains the information about the Two Factor Admin Override in Harness.
This value is true if Admin Override for Two Factor Authentication is enabled. Otherwise, it is false.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully configured two factor authorization for an account
PUT /gateway/ng/api/authentication-settings/two-factor-admin-override-settings?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: */*
Accept: */*
Content-Length: 38
{
"adminOverrideTwoFactorEnabled": true
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Updates the authentication mechanism for the given Account ID.
Account Identifier for the Entity.
Type of Authentication Mechanism SSO or NON_SSO
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully updated Auth mechanism for an account.
PUT /gateway/ng/api/authentication-settings/update-auth-mechanism?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"
}
]
}Updates OAuth providers for the given Account ID.
Account Identifier for the Entity.
This contains the information about OAuth settings defined in Harness.
Filter out the available OAuth providers.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully updated the Oauth providers for the account
PUT /gateway/ng/api/authentication-settings/oauth/update-providers?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: */*
Accept: */*
Content-Length: 77
{
"filter": "text",
"allowedProviders": [
"AZURE"
],
"settingsType": "USER_PASSWORD"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Updates the SAML metadata for the given Account ID.
Account Identifier for the Entity.
Saml Metadata input file
Display Name of the SAML
Group membership attribute
Specify whether or not to enable authorization
Logout URL
SAML metadata Identifier
SAML provider type
Optional SAML clientId for Azure SSO
Optional SAML clientSecret reference string for Azure SSO
Friendly name of the app on SAML SSO provider end in Harness
Enable Just in time user provision
falseOptional Key to match in SAML assertion for Just in time user provision
Optional Value to match in SAML assertion for Just in time user provision
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully uploads SAML metadata to the SAML setting configured for an account
POST /gateway/ng/api/authentication-settings/saml-metadata-upload?accountId=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: multipart/form-data
Accept: */*
Content-Length: 545
{
"file": {},
"fileMetadata": {
"type": "text",
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"fileName": "text",
"creationDate": "2026-01-01T00:00:00.000Z",
"modificationDate": "2026-01-01T00:00:00.000Z",
"readDate": "2026-01-01T00:00:00.000Z",
"size": 1,
"name": "text"
},
"displayName": "text",
"groupMembershipAttr": "text",
"authorizationEnabled": true,
"logoutUrl": "text",
"entityIdentifier": "text",
"samlProviderType": "text",
"clientId": "text",
"clientSecret": "text",
"friendlySamlName": "text",
"jitEnabled": false,
"jitValidationKey": "text",
"jitValidationValue": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Updates SAML metadata of the SAML configuration configured for an account
Account Identifier for the Entity.
SAML Metadata input file
Display Name of the SAML
Group membership attribute
Specify whether or not to enable authorization
Logout URL
SAML metadata Identifier
SAML provider type
Optional SAML clientId for Azure SSO
Optional SAML clientSecret reference string for Azure SSO
Enable Just in time user provision
falseOptional Key to match in SAML assertion for Just in time user provision
Optional Value to match in SAML assertion for Just in time user provision
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully updated SAML metadata of SAML setting configured for an account
PUT /gateway/ng/api/authentication-settings/saml-metadata-upload?accountId=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: multipart/form-data
Accept: */*
Content-Length: 519
{
"file": {},
"fileMetadata": {
"type": "text",
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"fileName": "text",
"creationDate": "2026-01-01T00:00:00.000Z",
"modificationDate": "2026-01-01T00:00:00.000Z",
"readDate": "2026-01-01T00:00:00.000Z",
"size": 1,
"name": "text"
},
"displayName": "text",
"groupMembershipAttr": "text",
"authorizationEnabled": true,
"logoutUrl": "text",
"entityIdentifier": "text",
"samlProviderType": "text",
"clientId": "text",
"clientSecret": "text",
"jitEnabled": false,
"jitValidationKey": "text",
"jitValidationValue": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Updates SAML metadata of the SAML configuration with given SSO Id, configured for an account
Saml Settings Identifier
Account Identifier for the Entity.
SAML Metadata input file
Display Name of the SAML
Group membership attribute
Specify whether or not to enable authorization
Logout URL
SAML metadata Identifier
SAML provider type
Optional SAML clientId for Azure SSO
Optional SAML clientSecret reference string for Azure SSO
Friendly name of the app on SAML SSO provider end in Harness
Enable Just in time user provision
falseOptional Key to match in SAML assertion for Just in time user provision
Optional Value to match in SAML assertion for Just in time user provision
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully updated SAML metadata of SAML setting configured for an account
PUT /gateway/ng/api/authentication-settings/saml-metadata-upload/{samlSSOId}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: multipart/form-data
Accept: */*
Content-Length: 545
{
"file": {},
"fileMetadata": {
"type": "text",
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"fileName": "text",
"creationDate": "2026-01-01T00:00:00.000Z",
"modificationDate": "2026-01-01T00:00:00.000Z",
"readDate": "2026-01-01T00:00:00.000Z",
"size": 1,
"name": "text"
},
"displayName": "text",
"groupMembershipAttr": "text",
"authorizationEnabled": true,
"logoutUrl": "text",
"entityIdentifier": "text",
"samlProviderType": "text",
"clientId": "text",
"clientSecret": "text",
"friendlySamlName": "text",
"jitEnabled": false,
"jitValidationKey": "text",
"jitValidationValue": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Updates whitelisted domains configured for an account.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully updated whitelisted domains configured with an account
PUT /gateway/ng/api/authentication-settings/whitelisted-domains?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: */*
Accept: */*
Content-Length: 8
[
"text"
]{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Updates the SAML metadata for the given Account ID.
Account Identifier for the Entity.
Saml Metadata input file
Display Name of the SAML
Group membership attribute
Specify whether or not to enable authorization
Logout URL
SAML metadata Identifier
SAML provider type
Optional SAML clientId for Azure SSO
Optional SAML clientSecret reference string for Azure SSO
Friendly name of the app on SAML SSO provider end in Harness
Enable Just in time user provision
falseOptional Key to match in SAML assertion for Just in time user provision
Optional Value to match in SAML assertion for Just in time user provision
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successfully uploads SAML metadata to the SAML setting configured for an account
POST /gateway/ng/api/authentication-settings/saml-metadata?accountId=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: multipart/form-data
Accept: */*
Content-Length: 545
{
"file": {},
"fileMetadata": {
"type": "text",
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"fileName": "text",
"creationDate": "2026-01-01T00:00:00.000Z",
"modificationDate": "2026-01-01T00:00:00.000Z",
"readDate": "2026-01-01T00:00:00.000Z",
"size": 1,
"name": "text"
},
"displayName": "text",
"groupMembershipAttr": "text",
"authorizationEnabled": true,
"logoutUrl": "text",
"entityIdentifier": "text",
"samlProviderType": "text",
"clientId": "text",
"clientSecret": "text",
"friendlySamlName": "text",
"jitEnabled": false,
"jitValidationKey": "text",
"jitValidationValue": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?