getGroup

Returns the permissions a user, who is a member of the group that the file/directory belongs to, has for the file/directory.

The returned object is live, modifying it will change the user's permissions.

For further details on permissions see ConfigurableUserClassFilePermissions.