Online read during cadre data download (DataSetupViewModel.syncIERoleMap, and SetupForUser in the background user-data worker). Farmer IE ids from ie_flat_entity are sent in chunks of 30 inside a criteria string; returned role maps are saved to the ierolemap table so farmer roles show on the profile. Any chunk failure throws and marks the data-download step failed.
Headers
Header
Value
Notes
X-SESSIONID
<session token>
Added by AuthInterceptor (data/net/AuthInterceptor.kt) when the call does not set it; on HTTP 401 or 400 the interceptor invalidates the token, fetches a new one and retries the request once.
Parameters
Param
In
Required
Example
Notes
criteria
query
Yes
isActive=true AND iE.id in (40001,40002)
Client-built; up to 30 ids per call.
Request
No body. client-built criteria with IE ids (chunk 30)