How to return a user's group access permissions?
The Group class has a userHasPermission() method you can use. So something like this:

if ($group-&gt;userHasPermission($user-&gt;uid, 'some permission')) {
  // do something.
}