Anyone please answer my question, How to remove th...
# general
k
Anyone please answer my question, How to remove the role access to a specific user using API.. Thanks
k
Can you re-post? I can't see any previous messages from you
Take a look at step 6 https://druid.apache.org/docs/latest/operations/security-overview#enable-authorizers Finally, attach permissions to the roles to control how they can interact with Druid at
druid-ext/basic-security/authorization/db/MyBasicMetadataAuthorizer/roles/<ROLENAME>/permissions
. For example:
Copy code
curl -u admin:password1 -H'Content-Type: application/json' -XPOST --data-binary @perms.json <https://my-coordinator-ip:8281/druid-ext/basic-security/authorization/db/MyBasicMetadataAuthorizer/roles/myrole/permissions>
The payload of
perms.json
should be in the following form:
Copy code
[
   {
     "resource": {
       "type": "DATASOURCE",
       "name": "<PATTERN>"
     },
     "action": "READ"
   },
   {
     "resource": {
       "type": "STATE",
       "name": "STATE"
     },
     "action": "READ"
   }
]
k
Ok Thank you sir, But you sent the role assignment to a user, I want a role to remove from the user. How can I do that ??