Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 11, 2020 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/cd979e577dc87e6f04a2f380d48f2204 to your computer and use it in GitHub Desktop.
Save velotiotech/cd979e577dc87e6f04a2f380d48f2204 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Uage dcosAddUsers.sh <Users to add are given in list.txt, each user on new line>
for i in `cat users.list`;
do
echo $i
curl -X PUT -H "Authorization: Bearer $(dcos config show core.dcos_acs_token)" "$(dcos config show core.dcos_url)/acs/api/v1/users/$i" -d "{}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment