Uploaded image for project: 'Identity'
  1. Identity
  2. ID-8573

Endpoint "Search for users within an organization" returns intermittent 504 gateway timeout

      Issue Summary

      When using the new experimental endpoint Search for users within an organization that was released for the Organizations REST API, frequent timeouts can occur.

      Steps to Reproduce

      Send a POST with a JSON payload that combines the emailUsernames and emailDomains parameters to search for a user from a specific domain: 

      {
          "emailUsernames": {
              "eq": ["john.doe"]
          },
          "emailDomains": {
              "eq": [
                  "mydomain.com"
              ]
          },
          "expand": ["NAME", "EMAIL"],
          "limit": 20
      } 

      Expected Results

      The user should be returned without any issues. 

      Actual Results

      While the query usually works, very frequently a 504 gateway timeout occurs after 15 seconds. 

      The issue happens more frequently when using "eq". When using "contains", the timeouts are not that frequent but they do take some time (around 9s) to be processed, depending on the amount of users in the user base. 

      Workaround

      Please retry the API call or implement a retry mechanism to handle the timeout if you are calling this endpoint from a script. 

            [ID-8573] Endpoint "Search for users within an organization" returns intermittent 504 gateway timeout

            No work has yet been logged on this issue.

              e5fdffa058ad xiaji
              bd4a89fcb3fe Renan Andrade
              Affected customers:
              0 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated: