--- a/eclass/acct-group.eclass	2019-07-30 17:12:17.342270337 +0300
+++ b/eclass/acct-group.eclass	2019-07-30 17:16:16.976924400 +0300
@@ -91,7 +91,7 @@
 
 	# check for ACCT_GROUP_ID collisions early
 	if [[ -n ${ACCT_GROUP_ENFORCE_ID} ]]; then
-		local group_by_id=$(egetgroupname "${ACCT_GROUP_ID}")
+		local group_by_id=$(egetent group "${ACCT_GROUP_ID}" | cut -d: -f1)
 		local group_by_name=$(egetent group "${ACCT_GROUP_NAME}")
 		if [[ -n ${group_by_id} ]]; then
 			if [[ ${group_by_id} != ${ACCT_GROUP_NAME} ]]; then