Hello Gary
My mistake then, a user posted similar issue so I thought it was you
From the tests I was able to carry out, note that the all_access is a role reserved for the Security plugin environment. Reserved roles are restricted for any permission customizations.
What you can do to map your already generated user is to duplicate the all_access role and then map your user to that role. I share a screenshot of the tests carried out to serve as a guide.
On the other hand, these roles and users are at Opendistro level. However, if you want your user to have admin permissions in the Wazuh dashboard as well you have to add it to the Wazuh-UI administrator role.
For this you must access Wazuh app >> Security >> Roles mapping and create a new Role mapping for example opendistro_wazuh_admin. Set your new role name then select the Role administrator and map your previous generated user in the section Map internal users and finally save role mapping.
Note: To create a new user you must go to Security >> Internal users and select the Create internal user button.
Please let me know if this helps
Best Regards