Creating DW service accounts
Problem
You need a service account for DataWarehouse.
Steps
-
Login to DataWarehouse and navigate to admin panel of DataWarehouse
-
Click “+ Add” on Users model and create a new user by clicking “Save and continue editing”.
-
Scroll down and add any value to last_login, this prevents the account getting deleted.
-
Add any needed policies by adding the service account to the “extra users” of an LDAPGroupLink. Read more in the Authorization and Permission guide.
-
(optional) Add api token (under the Tokens model) to the new service account, and if needed add it to deployment-all.
Notes
-
Commonly service accounts username start with
sa-
. -
It is best to use a random password generator for the service account like Diceware or BitWarden, however if the service account doesn’t need password after creation of the service account you can unset the password by opening shell and running this (example using the username ‘sa-new-user’):
sa_user = User.objects.get(username='sa-new-user') sa_user.set_unusable_password() sa_user.save()