How do I get the list of permissions?
You can go to Admin -> Group -> Group Types -> [your group type]. On that page, click the Permissions tab. You can see all the permissions there. If you need to know the permissions string, you can inspect any checkbox for a given role/permission combo, and look at the name attribute. It will be something like admin[permission_label], where permission_label is the value you would pass as the first argument to $group-&gt;hasPermission().