Created
October 22, 2018 09:08
-
-
Save pkazi/96bcda9acb67b4524bd3ca00419239a9 to your computer and use it in GitHub Desktop.
DCOS add users to Organization using CLI ( Open Source DCOS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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