Error fetching groups in enrichProfile Specified timeout of 20000 ms was reached

Problem Statement

Users are occasionally unable to log in. AD/LDAP Connector logs showing: “Error fetching groups in enrichProfile Specified timeout of 20000 ms was reached”

Cause

The AD/LDAP Connector is timing out while fetching groups from the AD/LDAP Server.

Solution

Increase the timeout to more than 20 in the config.json file for the GROUPS_TIMEOUT_SECONDS parameter.

For example, change or add this line to the config.json file:

"GROUPS_TIMEOUT_SECONDS": 30,

If you do not need to retrieve groups from the AD/LDAP Server, it is best to turn off groups fetching by using the GROUPS parameter in the config.json file, for example:

"GROUPS": false,