[tools]Add new file for matrix
This commit is contained in:
parent
6de1d5f9cc
commit
5866e65cc3
1 changed files with 11 additions and 0 deletions
11
matrix/create_user
Normal file
11
matrix/create_user
Normal file
|
@ -0,0 +1,11 @@
|
|||
while read A B C D E
|
||||
do
|
||||
pw=$E
|
||||
name=$A" "$B
|
||||
ad=$C
|
||||
id="@"$D
|
||||
data='{"password":"'${pw}'", "displayname": "'${name}'", "threepids": [ { "medium": "email", "address": "'${ad}'" }], "admin": false, "deactivated": false, "avatar_url": null }'
|
||||
h='Authorization: Bearer <AccessToken>'
|
||||
curl -v -X PUT -H "$h" -d "$data" http://localhost:8008/_synapse/admin/v2/users/$id:politikergespraeche.germanzero.org
|
||||
sleep 2
|
||||
done < info.txt
|
Loading…
Reference in a new issue