diff --git a/Jenkinsfile b/Jenkinsfile
index 7b3d6c7030b61a714967689b1f6cd4017516eb43..b494923b65ddf758299ed0c7412cd278ab4840ab 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -365,6 +365,7 @@ Void startGoofy(String namespace, String values, String imageTag, String bezeich
             }
         }
 
+        waitForKeycloakClientCreation(namespace)
         createKeycloakGroups(namespace)
         generateKeycloakUserYaml(namespace)
         applyKeycloakUser(namespace)
@@ -542,4 +543,16 @@ String getKeycloakAccessToken() {
 
 		return token.access_token
 	}
+}
+
+Void waitForKeycloakClientCreation(realm) {
+    def shScript = """curl -H 'Content-Type: application/json' \
+                        -H 'Authorization: bearer ${getKeycloakAccessToken()}' \
+                        'https://sso.dev.ozg-sh.de/auth/admin/realms/${realm}/clients' \
+                        | grep -q ${realm}-goofy
+                    """
+
+    while(sh(script: shScript, returnStatus: true)) {
+        sh 'sleep 5'
+    }
 }
\ No newline at end of file