correction createuser
This commit is contained in:
+2
-9
@@ -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,10 +685,7 @@ 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" \
|
||||
|
||||
Reference in New Issue
Block a user