--- 389-ds-base-3.1.1/src/lib389/lib389/cli_idm/role.py	2024-11-26 14:12:42.805280521 +0800
+++ 389-ds-base-3.1.1/src/lib389/lib389/cli_idm/role.py	2024-11-26 14:13:08.157340335 +0800
@@ -109,7 +109,7 @@
     filter = ""
     scope = ldap.SCOPE_SUBTREE
 
-    role_list = Roles(inst, basedn).filter(filter, scope)
+    role_list = Roles(inst, basedn).filter(filter, scope=scope)
     if not role_list:
         raise ValueError(f"No entries were found under {basedn} or the user doesn't have an access")
 
