Get the data of the access level or user group
getgroupdata( int $group_id ) : array
$group_id (int) (Required) The ID of the group or access level to which you want to get a name.
(array) The ID, name, icon and description of the given group, null if it does not exist.
foreach (getgroupdata(1) as $group) {
//
}