diff --git a/v2.2.x/site/en/adminGuide/rbac.md b/v2.2.x/site/en/adminGuide/rbac.md index 5a0520969..805f4538c 100644 --- a/v2.2.x/site/en/adminGuide/rbac.md +++ b/v2.2.x/site/en/adminGuide/rbac.md @@ -100,7 +100,7 @@ role.list_grants() Bind the role to a user so that this user can inherit all the privileges of the role. ``` -role.add_user("roleA", username) +role.add_user(username) ``` After binding a role to a user, you can: @@ -108,7 +108,7 @@ After binding a role to a user, you can: - List all users bind to a role ``` -role.get_users("roleA") +role.get_users() ``` ## 5. Deny access or privileges