Do I add users or group with write access to AOC options to have write access?

I am experiencing a challenge when filling form for my custom app. I had AOC setup for my dataset with two options.

When I submit with superadmin access for both AOC options it works. But when I login to one of the data entry group account user, and submit data for both AOC options, one will go while the other fail.

When I checked the console, I got the error message that the user do not have write access to submit data for the AOC Option that is failing. When I open the category option in maintenance app, I checked the sharing setting and see that the user account is added to the group that has write access.

Do I need to add individual users with write access to the options or the group they belong that was given the write access?

I have the option payload as below (I have removed unimportant objects):

{
    "name": "Team 1",
    "externalAccess": false,
    "publicAccess": "r-r-----",
    "userGroupAccesses": [
        {
            "access": "r-rw----",
            "displayName": "Team 1 data capture",
            "userGroupUid": "yi9ZrCRawFg",
            "id": "yi9ZrCRawFg"
        }
    ],
    "userAccesses": [],
    "sharing": {
        "owner": "M5zQapPyTZI",
        "external": false,
        "users": {},
        "userGroups": {
            "yi9ZrCRawFg": {
                "displayName": "Team 1 data capture",
                "access": "r-rw----",
                "id": "yi9ZrCRawFg"
            }
        },
        "public": "r-r-----"
    },
    "dimensionItemType": "CATEGORY_OPTION",
    "organisationUnits": [],
    "categories": [
        {
            "id": "nAqMCK2tWvg"
        }
    ],
    "categoryOptionCombos": [
        {
            "id": "Ex0mNfGK47v"
        }
    ],
    "id": "q05QECBGqSk"
}

Well I had to refresh the apps from the server. Clear the site cache on my phone. Force load the app. The app is working now without sharing write access to each user but the user group they belong.

3 Likes