penglele opened a new issue, #24025:
URL: https://github.com/apache/doris/issues/24025

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   2.0.1-rc04
   
   ### What's Wrong?
   
   I have a question for revoke
   create user ceshi_lgp@'172%' IDENTIFIED by '123456_';
   create role role2;
   grant grant_priv on internal.db_ceshi.* to role  'role2';
   grant 'role2' to ceshi_lgp@'172%';
   revoke 'role2' from ceshi_lgp@'172%';    ----success
   show grants for ceshi_lgp@'172%';  ---The permissions for role2 remain in 
DatabasePrivs grant_priv
   
   ### What You Expected?
   
   After revoke role, the corresponding permissions are restored, and the show 
grant display is normal
   
   ### How to Reproduce?
   
   create user ceshi_lgp@'172%' IDENTIFIED by '123456_';
   create role role2;
   grant grant_priv on internal.db_ceshi.* to role  'role2';
   grant 'role2' to ceshi_lgp@'172%';
   revoke 'role2' from ceshi_lgp@'172%';   
   show grants for ceshi_lgp@'172%';  
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to