i want to export privileges data only
riverzzz opened this issue · comments
pandaGunGun commented
Summary
i want to export privileges data only.
Motivation
i create a new cluster and i change space partitions,so i do not need data info.but i have grant privilege to too many users in old cluster,so i want to export privileges data or privileges sql.
shylock commented
I think you could do it now already.
show spaces
to get all spacesshow create space <>
to get query to create spaceshow users
to get all users, then assemble the create user queryshow roles in <>
to get all permission in space, then you could assemble the grant query.
Wey Gu commented
Will close it as it's been inactive for days. Feel free to reopen it.