GitHub user fertek added a comment to the discussion: Creating Users in Apache Superset Programmatically
``` #!/bin/bash # Example variables - adjust as needed USERNAME="new_user" FIRSTNAME="New" LASTNAME="User" EMAIL="[email protected]" PASSWORD=$(openssl rand -base64 24 | tr -dc 'a-zA-Z0-9!@#$%^&*()_+' | head -c 32) # Create a user with specified role if ! superset fab create-user \ --username "$USERNAME" \ --firstname "$FIRSTNAME" \ --lastname "$LASTNAME" \ --email "$EMAIL" \ --password "$PASSWORD" \ --role "Gamma"; then echo "Error: Failed to create user $USERNAME" exit 1 else echo "User $USERNAME created successfully." fi ``` GitHub link: https://github.com/apache/superset/discussions/27373#discussioncomment-13517802 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
