grantPrivilegeV2 Vs grantPrivilege #41591
Replies: 2 comments 2 replies
-
I'm a little confused here. V1 API should be deprecated soon. |
Beta Was this translation helpful? Give feedback.
-
thanks @xiaofan-luan , we have workflow with set off cluster which are in v2.5.x and lesser version v2.4.x as well, This workflow will create users, and grant privileges up on selected cluster which can be either v2.5.x or lesser version. hence we want to use both version API's grantPrivilegeV2 and grantPrivilege. Looks grantPrivilegeV2 is not compatible with v2.4.x cluster's. Kindly suggest the best and long fixable solution here? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Team,
We have db name in grantPrivilegeV2 API, but same is not available in grantPrivilege. So here if we are using grantPrivilege how to grant role /privilege to a specific db? Using grantPrivilege we able to grantPrivileges, in below we are targeting to grant all privilege at collection level for the role.
But when trying to create collection using above role privileges getting
permission denied to user to create collection in default db
. below is the describe role output:test_role description DescribeRoleResp(grantInfos=[DescribeRoleResp.GrantInfo(objectType=Collection, privilege=*, objectName=*, dbName=default, grantor=root)])
Beta Was this translation helpful? Give feedback.
All reactions