From d363411dae7c6f7de23a251f56f0dc8c40964c26 Mon Sep 17 00:00:00 2001 From: Fab Date: Mon, 6 Jul 2026 02:54:59 +0200 Subject: [PATCH] correction createuser --- bin/createUser.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/bin/createUser.sh b/bin/createUser.sh index 90a6a8f..56ecc14 100755 --- a/bin/createUser.sh +++ b/bin/createUser.sh @@ -675,11 +675,7 @@ EOF resp=\$(curl -s -X POST "https://${URL_AGORA}/api/v4/teams" \ -H "Authorization: Bearer ${mattermost_token}" \ -H "Content-Type: application/json" \ - -d '{ - "name":"${EQUIPE_AGORA}", - "display_name":"${EQUIPE_AGORA}", - "type":"I" - }') + -d '{ "name":"${EQUIPE_AGORA}", "display_name":"${EQUIPE_AGORA}", "type":"I"}') TEAM_ID=\$(echo "\$resp" | jq -r '.id') @@ -689,16 +685,13 @@ EOF curl -s -X POST "https://${URL_AGORA}/api/v4/teams/\${TEAM_ID}/members" \ -H "Authorization: Bearer ${mattermost_token}" \ -H "Content-Type: application/json" \ - -d '{ - "team_id": "'"\${TEAM_ID}"'", - "user_id": "'"\${USER_ID}"'" - }' + -d '{ "team_id": "'"\${TEAM_ID}"'", "user_id": "'"\${USER_ID}"'" }' #et on le rend admin de son équipe curl -s -X PUT "https://${URL_AGORA}/api/v4/teams/\${TEAM_ID}/members/\${USER_ID}/roles" \ -H "Authorization: Bearer ${mattermost_token}" \ -H "Content-Type: application/json" \ - -d '{"roles":"team_admin"}' + -d '{"roles":"team_admin"}' EOF