diff --git a/prod_rmq_agents/get-next-uid-gid.py b/prod_rmq_agents/get-next-uid-gid.py
index 42d6cc892b138253c9e3aad2af2f0512357dce16..09358e97a63f882b2bcafac2520d42b29903b11f 100644
--- a/prod_rmq_agents/get-next-uid-gid.py
+++ b/prod_rmq_agents/get-next-uid-gid.py
@@ -30,6 +30,12 @@ def create_account(msg):
     msg["success"] = False
 
     # Bright command to create user
+    if str(rcfg.bright_cm_version).split(".")[0] == "8":
+        cmd = "/cm/local/apps/cmd/bin/cmsh -c "
+        cmd += f'"user; add {username}; set userid {uid}; set email {email};'
+        cmd += f'set commonname \\"{fullname}\\"; '
+        cmd += 'commit;"'
+
     cmd = "/cm/local/apps/cmd/bin/cmsh -c "
     cmd += f'"user; add {username}; set id {uid}; set email {email};'
     cmd += f'set commonname \\"{fullname}\\"; '