daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Mar 20th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. echo "Which AWS profile? [dev, sandbox, production]"
  4. read profile
  5.  
  6. echo "What User Pool Id? [us-east-1_XXXXXXXX]"
  7. read userPoolId
  8.  
  9. echo "Which users to update? [user1 user2 user3 user4]"
  10. read -a users
  11.  
  12. echo "What is the customer name? [customer1]"
  13. read customer
  14.  
  15. for user in ${users[@]}
  16. do
  17.     aws cognito-idp admin-update-user-attributes --profile $profile --user-pool-id $userPoolId --username $user --user-attributes Name="custom:customer",Value="$customer"
  18. done
  19.  
  20. echo 'User attributes updated!'
  21. aws cognito-idp list-users --profile $profile --user-pool-id $userPoolId
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top