diff --git a/roles/misp/tasks/config.yml b/roles/misp/tasks/config.yml
index be9bbded51d19f382be0006dca7e5ce0b3008961..cb0522087851bb94924d14b2ec6a1a150e26b0f1 100644
--- a/roles/misp/tasks/config.yml
+++ b/roles/misp/tasks/config.yml
@@ -42,6 +42,12 @@
    misp_api_key: "{{ get_output.stdout }}"
   when: '"initialised" in init_output.stdout'   
 
+- name: Store API key
+  copy:
+    content: "{{ misp_api_key }}"
+    dest: "{{playbook_dir}}/secrets/tokens/misp"
+  delegate_to: 127.0.0.1
+
 - name: add users
   uri:
    url: "https://{{soctoolsproxy}}:6443/admin/users/add/1"
@@ -56,16 +62,6 @@
   with_items:
     - "{{soctools_users}}"
 
-- name: Get user API key
-  shell: '/var/www/MISP/app/Console/cake Admin getAuthkey {{soctools_users[0].email}} | /usr/bin/tail -n1'
-  register: user_key
-
-- name: Store user API key
-  copy:
-    content: "{{ user_key.stdout }}"
-    dest: "{{playbook_dir}}/secrets/tokens/misp"
-  delegate_to: 127.0.0.1
-
 - name: Enable feed
   uri:
    url: "https://{{soctoolsproxy}}:6443/feeds/edit/1"