How to rename a group in Redshift database

Below is the syntax to rename a group in Redshift database:

ALTER GROUP groupname   
RENAME TO new_groupname;
See also  How to identify groups that an IAM user belongs to