diff -Naur a/src/lib389/lib389/cli_idm/posixgroup.py b/src/lib389/lib389/cli_idm/posixgroup.py
--- a/src/lib389/lib389/cli_idm/posixgroup.py	2024-08-01 15:51:12.699551420 +0800
+++ b/src/lib389/lib389/cli_idm/posixgroup.py	2024-08-01 15:52:34.075551420 +0800
@@ -38,7 +38,7 @@
 
 
 def get_dn(inst, basedn, log, args):
-    dn = lambda args: _get_arg( args.dn, msg="Enter dn to retrieve")
+    dn = _get_arg( args.dn, msg="Enter dn to retrieve")
     _generic_get_dn(inst, basedn, log.getChild('_generic_get_dn'), MANY, dn, args)
 
 
