User Discovery

The user discovery background process (UserDiscoveryBkg) is used to facilitate the log in process on native mobile apps. The following is a detailed description of the background process.

Note: This background process only applies to multi-tenant customers.

When a tenant runs the UserDiscoveryBkg process, the process obtains the userDiscovery.userChangeTimestamp parameter from the alss_parameters table for the specific tenant. The alss_parameters table is located in the central database. Users with a change timestamp later than the change timestamp specified by the parameterare are selected from the alco_user table. For each of these users, the Bkg process inserts or updates a record in the alss_user_discovery table located of the central database with the user’s login, email address and tenant. After processing all users, the Bkg process updates the userDiscovery.userChangeTimestamp parameter with the latest change timestamp value among all the users. Therefore, the central database has a current record of each user in every tenant that runs the Bkg process.

If you specify the email address for login on to the native app, the app passes the email to the UserDiscovery API on a server selected by the native app. The API queries the central database for a record that matches the email and the tenant’s name ending with _PRD. If found, the API returns the tenant and user login to the native app, allowing the user to log in.

The native app selects the server with this logic:

Call UserDiscovery on prod.xm.se2.inforcloudsuite.com

If not found {

Call UserDiscovery on xm10.eu1.inforcloudsuite.com

If not found {

Call UserDiscovery on xm10.inforcloudsuite.com

If not found {

Show error message

}

}

}