Some other things we’ve noticed:
Not all of the users have the same pieces of metadata in their API. Example 1 has a CreatedBy section (and strangely it notes that the user was createdBy itself…), and a user section. I’ve tried through import/export to modify and update these values in both Example 1 and 2, however no edits seem to be made after passing them in.
Example 1
{“lastUpdated”:“2021-08-10T16:07:35.975”,“id”:“rIvR57tQtxQ”,“href”:“https://vectorlinkcollect.org/api/users/rIvR57tQtxQ",“created”:“2021-08-10T16:07:35.975”,“name”:"Wiawso Community GH Mobile”,“displayName”:“Wiawso Community GH Mobile”,“externalAccess”:false,“surname”:“GH Mobile”,“firstName”:“Wiawso Community”,“favorite”:false,“access”:{“read”:true,“update”:true,“externalize”:true,“delete”:true,“write”:true,“manage”:true},“userCredentials”:{“lastUpdated”:“2023-08-29T17:54:04.054”,“id”:“PxH5kEpNlVw”,“created”:“2021-08-10T16:07:35.576”,“name”:“Wiawso Community GH Mobile”,“lastLogin”:“2023-08-29T17:54:04.053”,“displayName”:“Wiawso Community GH Mobile”,“externalAuth”:false,“externalAccess”:false,“disabled”:false,“twoFA”:false,“passwordLastUpdated”:“2021-08-10T16:07:37.288”,“invitation”:false,“selfRegistered”:false,“favorite”:false,“username”:“GH-WIA-1”,“userInfo”:{“id”:“rIvR57tQtxQ”},“access”:{“read”:true,“update”:true,“externalize”:true,“delete”:true,“write”:true,“manage”:true},“lastUpdatedBy”:{“displayName”:“Wiawso Community GH Mobile”,“name”:“Wiawso Community GH Mobile”,“id”:“rIvR57tQtxQ”,“username”:“GH-WIA-1”},“sharing”:{“external”:false},“createdBy”:{“displayName”:“Wiawso Community GH Mobile”,“name”:“Wiawso Community GH Mobile”,“id”:“rIvR57tQtxQ”,“username”:“GH-WIA-1”},“user”:{“displayName”:“Wiawso Community GH Mobile”,“name”:“Wiawso Community GH Mobile”,“id”:“rIvR57tQtxQ”,“username”:“GH-WIA-1”},“favorites”:,“cogsDimensionConstraints”:,“catDimensionConstraints”:,“translations”:,“userGroupAccesses”:,“attributeValues”:,“userRoles”:[{“id”:“Rry05ioKFiN”},{“id”:“cZmXa0qWK8I”}],“userAccesses”:},“sharing”:{“external”:false},“favorites”:,“teiSearchOrganisationUnits”:,“translations”:,“organisationUnits”:[{“id”:“JjT8hqi7T2T”}],“dataViewOrganisationUnits”:[{“id”:“JjT8hqi7T2T”}],“userGroupAccesses”:,“attributeValues”:,“userGroups”:[{“id”:“O5KW6iofw0H”},{“id”:“UcbGln8fRgI”},{“id”:“S0mJfuacgJr”}],“userAccesses”:}
Example 2
{“lastUpdated”:“2023-08-29T18:43:36.056”,“id”:“kgfAuTIDW1G”,“href”:“https://vectorlinkcollect.org/api/users/kgfAuTIDW1G",“created”:“2021-08-10T16:07:35.977”,“name”:"Wiawso Community GH Mobile”,“displayName”:“Wiawso Community GH Mobile”,“externalAccess”:false,“surname”:“GH Mobile”,“firstName”:“Wiawso Community”,“favorite”:false,“access”:{“read”:true,“update”:true,“externalize”:true,“delete”:true,“write”:true,“manage”:true},“userCredentials”:{“lastUpdated”:“2023-08-29T18:26:16.701”,“id”:“J3I6vOl2dFB”,“created”:“2023-08-29T18:26:16.701”,“name”:“Wiawso Community GH Mobile”,“lastLogin”:“2023-08-29T18:06:42.182”,“displayName”:“Wiawso Community GH Mobile”,“externalAuth”:false,“externalAccess”:false,“disabled”:false,“twoFA”:false,“passwordLastUpdated”:“2023-08-29T18:26:16.701”,“invitation”:false,“selfRegistered”:false,“favorite”:false,“username”:“GH-WIA-2”,“userInfo”:{“id”:“kgfAuTIDW1G”},“access”:{“read”:true,“update”:true,“externalize”:true,“delete”:true,“write”:true,“manage”:true},“lastUpdatedBy”:{“displayName”:“Matthew Boddie”,“name”:“Matthew Boddie",“id”:“mqCwaTdzxy2”,“username”:"matthew_boddie@abtassoc.com”},“sharing”:{“external”:false},“favorites”:,“cogsDimensionConstraints”:,“catDimensionConstraints”:,“translations”:,“userGroupAccesses”:,“attributeValues”:,“userRoles”:[{“id”:“Rry05ioKFiN”},{“id”:“cZmXa0qWK8I”}],“userAccesses”:},“sharing”:{“external”:false},“favorites”:,“teiSearchOrganisationUnits”:,“translations”:,“organisationUnits”:[{“id”:“JjT8hqi7T2T”}],“dataViewOrganisationUnits”:[{“id”:“JjT8hqi7T2T”}],“userGroupAccesses”:,“attributeValues”:,“userGroups”:[{“id”:“O5KW6iofw0H”},{“id”:“UcbGln8fRgI”},{“id”:“S0mJfuacgJr”}],“userAccesses”:}
Error Message from Mobile when we try and sync:
{”httpStatus”:”Internal Server Error”,”httpStatusCode:”500”,”status”:”ERROR”}