How to add a new user and role to access a specific index with Read and write

**Versions ** (relevant - OpenSearch/Dashboard/Server OS/Browser):

latest 2.11.1, Opensearch Security

Describe the issue:
add a new role and limit a specific index permission, add a user, set opendistro_security_roles as this role, but nothing shown in Dashboard, unless set the all_access. But all_access is not expected.

Configuration:
API**

"index_premium_access": {
    "reserved": false,
    "hidden": false,
    "cluster_permissions": [
        "*"
    ],
    "index_permissions": [
        {
            "index_patterns": [
                "premium*"
            ],
            "fls": [],
            "masked_fields": [],
            "allowed_actions": [
                "*"
            ]
        }
    ],
    "tenant_permissions": [
        {
            "tenant_patterns": [
                "*"
            ],
            "allowed_actions": [
                "kibana_all_write"
            ]
        }
    ],
    "static": false
},





"fgcloud": {
    "hash": "",
    "reserved": false,
    "hidden": false,
    "backend_roles": [],
    "attributes": {},
    "opendistro_security_roles": [
        "index_premium_access"
    ],
    "static": false
},

Relevant Logs or Screenshots:

@joemily Did you use securityadmin.sh to apply your changes in the cluster?

1 Like