Copying an existing role

How can I copy an existing role as another role with all the values ( with all the existing permissions )

I tried to use Duplicate on the Role but all it did was create another Role with a different name. None of the permissions or users were replicated on this role.

Why do you want to do this though ?

It could possibly be done via MySQL query but then you will need to know the schema and how all those tables are connected and sounds like a complicated query. Creating a new role and assigning permissions will be much faster than this.

Add feature to duplicate role with permissions and send PR :slight_smile: