Skip to content
Android notifications 🔔, contact attachments 🖼️ and more 🎉 CHT 5.1 is here!

.replication_depth

**Replications**: Instructions for replication depth

Replication depth is defined under replication_depth as an array of objects. It grants the ability to limit document replication depending on user roles.

app_settings.json .replication_depth

propertydescriptionrequired
roleThe configured user role the depth applies to.yes
depthThe replication depth value. Must be a positive integer or 0.yes
report_depthAs of 3.10. Replication depth applied to reports submitted by other users.no
replicate_primary_contactsAs of 4.18.0. When true, the primary contact of every place in the user’s replication scope is replicated to their device, even if that contact is beyond the configured depth. Defaults to false. See docs.no
Code sample:
{
  "replication_depth": [
    { "role": "district_manager", "depth": 1, "report_depth": 1, "replicate_primary_contacts": true },
    { "role": "national_manager", "depth": 2 }
  ]
}
Last updated on

Did this documentation help you ?