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" \
|
resp=\$(curl -s -X POST "https://${URL_AGORA}/api/v4/teams" \
|
||||||
-H "Authorization: Bearer ${mattermost_token}" \
|
-H "Authorization: Bearer ${mattermost_token}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{ "name":"${EQUIPE_AGORA}", "display_name":"${EQUIPE_AGORA}", "type":"I"}')
|
||||||
"name":"${EQUIPE_AGORA}",
|
|
||||||
"display_name":"${EQUIPE_AGORA}",
|
|
||||||
"type":"I"
|
|
||||||
}')
|
|
||||||
|
|
||||||
TEAM_ID=\$(echo "\$resp" | jq -r '.id')
|
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" \
|
curl -s -X POST "https://${URL_AGORA}/api/v4/teams/\${TEAM_ID}/members" \
|
||||||
-H "Authorization: Bearer ${mattermost_token}" \
|
-H "Authorization: Bearer ${mattermost_token}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{ "team_id": "'"\${TEAM_ID}"'", "user_id": "'"\${USER_ID}"'" }'
|
||||||
"team_id": "'"\${TEAM_ID}"'",
|
|
||||||
"user_id": "'"\${USER_ID}"'"
|
|
||||||
}'
|
|
||||||
|
|
||||||
#et on le rend admin de son équipe
|
#et on le rend admin de son équipe
|
||||||
curl -s -X PUT "https://${URL_AGORA}/api/v4/teams/\${TEAM_ID}/members/\${USER_ID}/roles" \
|
curl -s -X PUT "https://${URL_AGORA}/api/v4/teams/\${TEAM_ID}/members/\${USER_ID}/roles" \
|
||||||
|
|||||||
Reference in New Issue
Block a user