Skip to content

ADMIN CLI: support grant/revoke user admin authorization#12381

Merged
JinHai-CN merged 3 commits intoinfiniflow:mainfrom
JinHai-CN:fix281
Jan 1, 2026
Merged

ADMIN CLI: support grant/revoke user admin authorization#12381
JinHai-CN merged 3 commits intoinfiniflow:mainfrom
JinHai-CN:fix281

Conversation

@JinHai-CN
Copy link
Contributor

What problem does this PR solve?

admin> grant admin 'aaa@aaa1.com';
Fail to grant aaa@aaa1.com admin authorization, code: 404, message: User 'aaa@aaa1.com' not found
admin> grant admin 'aaa@aaa.com';
Grant successfully!
admin> revoke admin 'aaa1@aaa.com';
Fail to revoke aaa1@aaa.com admin authorization, code: 404, message: User 'aaa1@aaa.com' not found
admin> revoke admin 'aaa@aaa.com';
Revoke successfully!
admin> revoke admin 'aaa@aaa.com';
aaa@aaa.com isn't superuser, yet!
admin> grant admin 'aaa@aaa.com';
Grant successfully!
admin> grant admin 'aaa@aaa.com';
aaa@aaa.com is already superuser!
admin> revoke admin 'aaa@aaa.com';
Revoke successfully!

Type of change

  • New Feature (non-breaking change which adds functionality)

@JinHai-CN JinHai-CN added the ci Continue Integration label Dec 31, 2025
@JinHai-CN JinHai-CN marked this pull request as ready for review December 31, 2025 11:08
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. 💞 feature Feature request, pull request that fullfill a new feature. labels Dec 31, 2025
@KevinHuSh KevinHuSh requested a review from Lynn-Inf December 31, 2025 11:22
@JinHai-CN JinHai-CN merged commit ff1020c into infiniflow:main Jan 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration 💞 feature Feature request, pull request that fullfill a new feature. size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants