Hello Team,
 Here are the steps, I followed for external users.
1. created a new role in role.yml file in indexer.Â
Team_A:
 reserved: false
 hidden: false
 tenant_permissions:
 - tenant_patterns:
  - "global_tenant"
  allowed_actions:
  - "read"
 cluster_permissions:
  - 'cluster_composite_ops_ro'
 index_permissions:
 - index_patterns:
  - "wazuh-*"
  dls: ""
  fls: []
  allowed_actions:
  - "*"
2. mapped this in role_mapping:
 Team_A:
 reserved: false
 hidden: false
 backend_roles:
  - "readall"
  - "My_ldap_group"
3. redeployed index pods.
4. run security script. everything looks fine.
5. restarted dashboard.
6. the security roles got created with the given permission
7. then i edited it for the assigning the groups label docs in the role.
8. went to the dashboard security. created the policy with id.agents:groups-label and crteated a role.
9. mapped the role to the policy. for assigning backend policy, use filter like back_roles Find and my Team_A.
10. saved everything and restarted the pods
Now when I login with ldap users, I don't see any indices in my ldap user indice management. I see error like You have no permissions. Contact to an administrator:
no permissions for [indices:data/read/search] and User.
I also gave cluster access to the role but still the same issue. I also deleted the old wazuh-alerts- but no improvment. what am i doing wrong?
Regards,
Saddique