Setting Passwords for Default Users

To enable any of the preconfigured default users provided in sample data, set a password and enable login for the user.

Users are created during initialization using the supplied project and sample data ImpEx files. For security reasons they have no passwords by default, but you can add them after the initialization, either in Backoffice or with custom ImpEx. Choose passwords that are unique, complex, and different for each environment. This reduces the risk of password leakage and minimizes the impact if such a leakage should occur.

Setting or Changing Passwords in Backoffice

When the system is up and running, you can set or change passwords, and enable login, for any of your users in Backoffice.

Context

Always choose secure passwords that are hard to guess, even for the default user or role configurations provided in sample data. Password changes done using Backoffice have immediate effect. There is no need to restart the system.

Procedure

  1. Log in to Backoffice with the Administrator account and go to the Administration Cockpit perspective.
  2. Select the appropriate user type under User, for example Employees or Customers.
  3. Search for your user or role and select the user in the results list.
  4. Go to the Password tab in the user details pane.
  5. Enter a new password in the Change Password fields.
  6. If required, select the False radio button under Disable Login to enable login for the user.
  7. Save your changes.

Results

The password is stored encrypted in the database.

Setting or Changing Passwords Using ImpEx

When the system is up and running, you can set or change the password, and enable login for any user or role using ImpEx.

Context

For production systems, always choose unique, secure passwords that are hard to guess and are not duplicated in other environments. Password changes done using ImpEx have immediate effect. There is no need to restart the system.

For test and development systems, you can use impex to set a default password for all default sample users that were loaded from project data during initialization.

Procedure

  1. Log in to Administration Console.
  2. Go to the ImpEx Import page under the Console tab.
  3. Paste your ImpEx containing new user credentials and login attributes into the content field, and click Validate content.

    If you're updating the password for specific users that are already defined, your ImpEx could look like the following. Use this method when setting passwords for multiple users in production systems. Ensure that each user has a unique and secure password that is not duplicated in other environments.

    UPDATE Employee; UID[unique = true] ; password ; logindisabled[default=false]
                   ; employeeone   ; employeeoneSecurePass   ;                      
                   ; employeetwo   ; employeetwoSecurePass   ;                            
                   ; employeethree ; employeethreeSecurePass ; 
    			...
    UPDATE Customer; UID[unique = true] ; password ; logindisabled[default=false]
                   ; customerone@hybris.com ; customeroneSecurePass ;                                 
                   ; customertwo@hybris.com ; customertwoSecurePass ;     
    			...            
    
  4. If your content is valid ImpEx, click Import content to update the passwords and enable login for the defined users.

Results

The password is stored encrypted in the database.

Enabling All Default Passwords for a Test or Development System

If you're setting up a test or development environment, you can set one single password for all default users. This process gets your development environment set up and running with any of the predefined sample users quickly.

Context

Procedure

  1. Log in to Administration Console.
  2. Go to the ImpEx Import page under the Console tab.
  3. Copy and paste the following Impex into your console, and click Validate content.

    Ensure you have selected Enable code execution in the settings panel of the ImpEx Import console to skip any users associated with modules that are not included in your build and prevent errors.

    UPDATE User;UID[unique=true];password[default=pw4all];loginDisabled[default=false]
    	"#%beforeEach:
    	import org.slf4j.Logger;
    	import org.slf4j.LoggerFactory;
    	import de.hybris.platform.servicelayer.user.UserService;
    	import de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException;
    	ERROR_MESSAGE_TEMPLATE = ""Password for the user [{}] can not be set because the user does not exist"";
    	Logger LOG = LoggerFactory.getLogger(""ImpExImportReader"");
    	UserService userService = Registry.getApplicationContext().getBean(""userService"", UserService.class);
    	userUid = line.get(1);
    	try
    	{
    		userService.getUserForUID(userUid);
    	}
    	catch (UnknownIdentifierException ex)
    	{
    		LOG.info(ERROR_MESSAGE_TEMPLATE, userUid);
    		line.clear();
    	}"
                   ; aarav.devi@acme.com
                   ; aaron.customer@hybris.com
                   ; abraham.mclane@acme.com
                   ; acctmgra
                   ; acctmgrb
                   ; acctmgrc
                   ; acctmgrd
                   ; akiro.nakamura@pronto-hw.com
                   ; akiro.nakamura@rustic-hw.com
                   ; albert.decastro@acme.com
                   ; alda.kamaka@acme.com
                   ; alejandro.navarro@rustic-hw.com
                   ; alistair@hybris.com
                   ; amelia.hill@acme.com
                   ; analyticsmanager
                   ; anamaria.coots@acme.com
                   ; andrea.customer@hybris.com
                   ; andrew.customer@hybris.com
                   ; anette.customer@hybris.com
                   ; angelyn.lobaugh@acme.com
                   ; anil.gupta@pronto-hw.com
                   ; anil.gupta@rustic-hw.com
                   ; annabel.golder@acme.com
                   ; anne.customer@hybris.com
                   ; anonymous
                   ; anthony.customer@hybris.com
                   ; anthony.lombardi@rustic-hw.com
                   ; arjun.sewant@acme.com
                   ; arnold.customer@hybris.com
                   ; asagent
                   ; asagentmanager
                   ; asagentsales
                   ; axel.krause@rustic-hw.com
                   ; ayumi.nakamura@acme.com
                   ; BackofficeIntegrationAdministrator
                   ; BackofficeIntegrationAgent
                   ; BackofficeProductAdministrator
                   ; BackofficeProductManager
                   ; BackofficeWorkflowAdministrator
                   ; BackofficeWorkflowUser
                   ; BedfordWarehouseAgent
                   ; BerlinDomWarehouseAgent
                   ; BerlinHospitalWarehouseAgent
                   ; BerlinMuseumWarehouseAgent
                   ; BerlinZooWarehouseAgent
                   ; bernard.customer@hybris.com
                   ; bernardo.coelho@acme.com
                   ; bobby.customer@hybris.com
                   ; brandon.leclair@acme.com
                   ; brian.customer@hybris.com
                   ; bridget.customer@hybris.com
                   ; burtonlover@hybris.com
                   ; byung-soon.lee@rustic-hw.com
                   ; CajonWarehouseAgent
                   ; cameralenslover@hybris.com
                   ; canonlover@hybris.com
                   ; carla.torres@rustic-hw.com
                   ; CarltonWarehouseAgent
                   ; chandni.devaraju@acme.com
                   ; chelsie.steck@acme.com
                   ; chen.gao@acme.com
                   ; chris.rumple@ehost.com
                   ; christmascustomer@hybris.com
                   ; cmseditor
                   ; cmsmanager
                   ; cmsmanager-apparel-de
                   ; cmsmanager-apparel-uk
                   ; cmsmanager-electronics
                   ; cmsmanager-electronics-de
                   ; cmsmanager-electronics-eu
                   ; cmsmanager-electronics-euzone
                   ; cmsmanager-electronics-uk
                   ; cmsmanager-electronics-us
                   ; cmsmanager-powertools
                   ; cmspublisher
                   ; cmsreader-apparel
                   ; cmsreviewer
                   ; cmstranslator
                   ; cmstranslator-Annette
                   ; cmstranslator-Seb
                   ; csagent
                   ; customer.support.1@sap.com
                   ; customer.support.2@sap.com
                   ; customer.support.3@sap.com
                   ; customer.support.4@sap.com
                   ; customer.support.5@sap.com
                   ; customer.support.6@sap.com
                   ; customer.support.7@sap.com
                   ; customer.support.8@sap.com
                   ; customer.support@ichikawa.com
                   ; customer.support@nakano.com
                   ; CustomerSupportAdministrator
                   ; CustomerSupportAgent
                   ; CustomerSupportManager
                   ; cxmanager
                   ; cxmanager-apparel-de
                   ; cxmanager-apparel-uk
                   ; cxmanager-electronics
                   ; cxmanager-electronics-de
                   ; cxmanager-electronics-eu
                   ; cxmanager-electronics-euzone
                   ; cxmanager-electronics-uk
                   ; cxmanager-electronics-us
                   ; cxmanager-powertools
                   ; cxuser
                   ; cxuser-apparel-de
                   ; cxuser-apparel-uk
                   ; cxuser-electronics
                   ; cxuser-electronics-de
                   ; cxuser-electronics-eu
                   ; cxuser-electronics-euzone
                   ; cxuser-electronics-uk
                   ; cxuser-electronics-us
                   ; cxuser-powertools
                   ; dagmar.fischer@acme.com
                   ; daisy.smith@irc.uk
                   ; dan.cameron@siteb.com
                   ; daniele.sorber@acme.com
                   ; darrin.hesser@acme.com
                   ; debera.spiller@acme.com
                   ; DefaultWarehouseAgent
                   ; dietrich.brand@acme.com
                   ; dionne.siguenza@acme.com
                   ; dorthy.geoghegan@acme.com
                   ; dot.cohan@acme.com
                   ; elena.bulav@internet.ru
                   ; elizabeth.juhlin@acme.com
                   ; emily.bennett@acme.com
                   ; eusebio.scharff@acme.com
                   ; fern.henline@acme.com
                   ; francie.wildman@acme.com
                   ; gi.sun@pronto-hw.com
                   ; gi.sun@rustic-hw.com
                   ; GlasgowWarehouseAgent
                   ; glen.hofer@acme.com
                   ; h.williams@peabody.ca
                   ; hac_editor
                   ; hac_viewer
                   ; hanna.andresen@acme.com
                   ; hanna.schmidt@pronto-hw.com
                   ; hanna.schmidt@rustic-hw.com
                   ; harold.wine@asite.org
                   ; hermelinda.cusick@acme.com
                   ; importmanager
                   ; InboundConsentTemplateUser
                   ; IndianapolisWarehouseAgent
                   ; IntegrationAdministrator
                   ; IntegrationAgent
                   ; integrationapi_adminuser
                   ; integrationapi_createuser
                   ; integrationapi_viewuser
                   ; integrationmonitoringtestuser
                   ; integrationservicetestuser
                   ; isabella.jackson@acme.com
                   ; james.bell@pronto-hw.com
                   ; james.bell@rustic-hw.com
                   ; james.davis@acme.com
                   ; jamey.sowa@acme.com
                   ; janetta.estepp@acme.com
                   ; JerseyWarehouseAgent
                   ; jules.hasson@acme.com
                   ; juliane.tickle@acme.com
                   ; karleen.holub@acme.com
                   ; keenreviewer0@hybris.com
                   ; keenreviewer10@hybris.com
                   ; keenreviewer11@hybris.com
                   ; keenreviewer12@hybris.com
                   ; keenreviewer13@hybris.com
                   ; keenreviewer14@hybris.com
                   ; keenreviewer15@hybris.com
                   ; keenreviewer16@hybris.com
                   ; keenreviewer17@hybris.com
                   ; keenreviewer18@hybris.com
                   ; keenreviewer19@hybris.com
                   ; keenreviewer1@hybris.com
                   ; keenreviewer20@hybris.com
                   ; keenreviewer21@hybris.com
                   ; keenreviewer22@hybris.com
                   ; keenreviewer23@hybris.com
                   ; keenreviewer24@hybris.com
                   ; keenreviewer25@hybris.com
                   ; keenreviewer26@hybris.com
                   ; keenreviewer27@hybris.com
                   ; keenreviewer28@hybris.com
                   ; keenreviewer29@hybris.com
                   ; keenreviewer2@hybris.com
                   ; keenreviewer30@hybris.com
                   ; keenreviewer3@hybris.com
                   ; keenreviewer4@hybris.com
                   ; keenreviewer5@hybris.com
                   ; keenreviewer6@hybris.com
                   ; keenreviewer7@hybris.com
                   ; keenreviewer8@hybris.com
                   ; keenreviewer9@hybris.com
                   ; keita.tanaka@acme.com
                   ; KotoWarehouseAgent
                   ; lael.garibay@acme.com
                   ; lars.bauer@rustic-hw.com
                   ; latisha.latimer@acme.com
                   ; lavone.dupler@acme.com
                   ; LeedsWarehouseAgent
                   ; linda.wolf@pronto-hw.com
                   ; linda.wolf@rustic-hw.com
                   ; liu.yang@acme.com
                   ; lucas.kowalski@rustic-hw.com
                   ; mai.matsumoto@acme.com
                   ; manager
                   ; mara.martino@acme.com
                   ; marie.dubois@rustic-hw.com
                   ; marie.kempner@acme.com
                   ; mark.rivers@pronto-hw.com
                   ; mark.rivers@rustic-hw.com
                   ; marketingmanager
                   ; marvel.fargo@acme.com
                   ; matheu.silva@rustic-hw.com
                   ; MatsudoWarehouseAgent
                   ; maycustomer@hybris.com
                   ; men@hybris.com
                   ; menover30@hybris.com
                   ; menshortslover@hybris.com
                   ; menvipbronze@hybris.com
                   ; menvipgold@hybris.com
                   ; merchantcontentmanager
                   ; merchantproductmanager
                   ; merchantvendormanager
                   ; mingmei.wang@pronto-hw.com
                   ; mingmei.wang@rustic-hw.com
                   ; MisatoWarehouseAgent
                   ; MunichMuseumWarehouseAgent
                   ; NakanoWarehouseAgent
                   ; natsumi.takahashi@acme.com
                   ; noah.jenkins@acme.com
                   ; oliver.baker@acme.com
                   ; ossie.dilks@acme.com
                   ; piedad.holdren@acme.com
                   ; powerdrillslover@pronto-hw.com
                   ; productmanager
                   ; punchout.customer2@punchoutorg.com
                   ; punchout.customer@punchoutorg.com
                   ; RegApproverA
                   ; revenueCloudCustomerApiUser
                   ; reviewer10@hybris.com
                   ; reviewer11@hybris.com
                   ; reviewer12@hybris.com
                   ; reviewer13@hybris.com
                   ; reviewer14@hybris.com
                   ; reviewer15@hybris.com
                   ; reviewer16@hybris.com
                   ; reviewer17@hybris.com
                   ; reviewer18@hybris.com
                   ; reviewer19@hybris.com
                   ; reviewer1@hybris.com
                   ; reviewer20@hybris.com
                   ; reviewer21@hybris.com
                   ; reviewer22@hybris.com
                   ; reviewer23@hybris.com
                   ; reviewer24@hybris.com
                   ; reviewer25@hybris.com
                   ; reviewer26@hybris.com
                   ; reviewer27@hybris.com
                   ; reviewer28@hybris.com
                   ; reviewer29@hybris.com
                   ; reviewer2@hybris.com
                   ; reviewer30@hybris.com
                   ; reviewer3@hybris.com
                   ; reviewer4@hybris.com
                   ; reviewer5@hybris.com
                   ; reviewer6@hybris.com
                   ; reviewer7@hybris.com
                   ; reviewer8@hybris.com
                   ; reviewer9@hybris.com
                   ; richard.martin@acme.com
                   ; sade.mcdougall@acme.com
                   ; salome.levi@rustic-hw.com
                   ; sandesh.patwary@acme.com
                   ; sapCpqQuoteApiUser
                   ; sapInboundB2BCustomerUser
                   ; sapInboundB2CCustomerUser
                   ; sapInboundClassificationUser
                   ; sapInboundMDMB2CCustomerUser
                   ; sapInboundOMMOrderUser
                   ; sapInboundOMMReturnRequestUser
                   ; sapInboundOMSOrderUser
                   ; sapInboundPriceUser
                   ; sapInboundProductUser
                   ; sapInboundRCConfigUser
                   ; sapInboundSubscriptionPriceUser
                   ; screwdriverslover@pronto-hw.com
                   ; searchmanager
                   ; SecondaryNakanoWarehouseAgent
                   ; sheilah.duffin@acme.com
                   ; ShinbashiWarehouseAgent
                   ; shortslover@hybris.com
                   ; shun.watanabe@acme.com
                   ; summercustomer@hybris.com
                   ; TacomaWarehouseAgent
                   ; TampaWarehouseAgent
                   ; temeka.meekins@acme.com
                   ; test-user-with-coupons@ydev.hybris.com
                   ; test-user-with-orders@ydev.hybris.com
                   ; thanksgivingcustomer@hybris.com
                   ; tilda.prisbrey@acme.com
                   ; tom.ziebarth@acme.com
                   ; TranslatorGSW
                   ; Tulsa1WarehouseAgent
                   ; Tulsa2WarehouseAgent
                   ; Tulsa3WarehouseAgent
                   ; Tulsa4WarehouseAgent
                   ; Tulsa5WarehouseAgent
                   ; ula.barragan@acme.com
                   ; ulf.becker@rustic-hw.com
                   ; vada.rahm@acme.com
                   ; vendor1vendoradministrator
                   ; vendor1vendorcontentmanager
                   ; vendor1vendorproductmanager
                   ; vendor1vendorwarehousestaff
                   ; vendor2vendoradministrator
                   ; vendor2vendorcontentmanager
                   ; vendor2vendorproductmanager
                   ; vendor2vendorwarehousestaff
                   ; vendor3vendoradministrator
                   ; vendor3vendorcontentmanager
                   ; vendor3vendorproductmanager
                   ; vendor3vendorwarehousestaff
                   ; vendor4vendoradministrator
                   ; vendor4vendorcontentmanager
                   ; vendor4vendorproductmanager
                   ; vendor4vendorwarehousestaff
                   ; vendor5vendoradministrator
                   ; vendor5vendorcontentmanager
                   ; vendor5vendorproductmanager
                   ; vendor5vendorwarehousestaff
                   ; vendor6vendoradministrator
                   ; vendor6vendorcontentmanager
                   ; vendor6vendorproductmanager
                   ; vendor6vendorwarehousestaff
                   ; vendor7vendoradministrator
                   ; vendor7vendorcontentmanager
                   ; vendor7vendorproductmanager
                   ; vendor7vendorwarehousestaff
                   ; vendor8vendoradministrator
                   ; vendor8vendorcontentmanager
                   ; vendor8vendorproductmanager
                   ; vendor8vendorwarehousestaff
                   ; vipbronze@hybris.com
                   ; vipgiold@hybris.com
                   ; vipgold@hybris.com
                   ; vipsilver@hybris.com
                   ; vjdbcReportsUser
                   ; wang.lei@acme.com
                   ; WarehouseAdministrator
                   ; WarehouseAgent
                   ; WarehouseEAgent
                   ; WarehouseManager
                   ; WarehouseNAgent
                   ; WarehouseSAgent
                   ; WarehouseWAgent
                   ; wei.liu@homemail.ch
                   ; wfl_marketing
                   ; wfl_marketing_DE
                   ; wfl_marketing_EN
                   ; wfl_marketing_ES
                   ; wfl_marketing_FR
                   ; wfl_marketing_GB
                   ; wfl_marketing_GSW
                   ; wfl_marketing_IT
                   ; wfl_marketing_SWE
                   ; wfl_productManagement
                   ; wfl_purchase
                   ; wfl_translator_DE
                   ; wfl_translator_EN
                   ; wfl_translator_ES
                   ; wfl_translator_FR
                   ; wfl_translator_GB
                   ; wfl_translator_GSW
                   ; wfl_translator_IT
                   ; wfl_translator_SWE
                   ; william.hunter@pronto-hw.com
                   ; william.hunter@rustic-hw.com
                   ; women@hybris.com
                   ; womenvipgold@hybris.com
                   ; womenvipsilver@hybris.com
                   ; yan.shehorn@acme.com
                   ; yformsmanager
                   ; yoshie.dority@acme.com
                   ; yu.yamamoto@acme.com
                   ; yuka.kobayashi@acme.com
                   ; zhang.wei@acme.com
                   ; sbgadmin
                   ; wfl_productApproval
                   ; tuaInboundSimpleProductOfferingUser
                   ; selfserviceuser2@hybris.com
                   ; selfserviceuser3@hybris.com
                   ; selfserviceuser4@hybris.com
                   ; selfserviceuser5@hybris.com
                   ; selfserviceuser6@hybris.com
                   ; etta.berg@hybris.com
                   ; tim.james@hybris.com
                   ; ronnie.ray@hybris.com
                   ; reggy.ray@hybris.com
                   ; alan.martin@hybris.com
                   ; maria.stevens@hybris.com
                   ; john.russel@hybris.com
                   ; mark.farrel@hybris.com
                   ; olivia.ann@hybris.com
                   ; adrian.kent@hybris.com
                   ; customer.support@chicago.com
                   ; customer.support@sanfrancisco.com
                   ; pritika.customer@hybris.com
                   ; kirti.customer@hybris.com
                   ; isha.customer@hybris.com
                   ; nishi.customer@hybris.com
                   ; surabhi.customer@hybris.com
                   ; kritika.customer@hybris.com
                   ; dipti.customer@hybris.com
                   ; pradeepthi.customer@hybris.com
                   ; rewati.customer@hybris.com
                   ; diptiman.customer@hybris.com
                   ; daniel.customer@hybris.com
                   ; abra.christensen@sapfsa.com
                   ; aladdin.gentry@sapfsa.com
                   ; amos.adkins@sapfsa.com
                   ; aubrey.baxter@sapfsa.com
                   ; blossom.welch@sapfsa.com
                   ; burton.franco@sapfsa.com
                   ; carson.shepherd@sapfsa.com
                   ; colt.ford@sapfsa.com
                   ; deacon.fuller@sapfsa.com
                   ; dean.barton@sapfsa.com
                   ; diana.best@sapfsa.com
                   ; evangeline.jefferson@sapfsa.com
                   ; hedley.mayer@sapfsa.com
                   ; indira.duffy@sapfsa.com
                   ; kadeem.gamble@sapfsa.com
                   ; kai.ratliff@sapfsa.com
                   ; kelsie.spencer@sapfsa.com
                   ; michael.clarke@sapfsa.com
                   ; patricia.anderson@sapfsa.com
                   ; tag.demph@sapfsa.com
                   ; ulysses.head@sapfsa.com
                   ; xaviera.crawford@sapfsa.com
                   ; yuri.chandler@sapfsa.com
                   ; michael.barton@sapfsa.com
                   ; thomas.schmidt@sapfsa.com
                   ; kathy.liu@sapfsa.com
                   ; john.miller@sapfsa.com
                   ; richard.wilson@sapfsa.com
                   ; marco.rossi@sapfsa.com
                   ; takahiro.suzuki@sapfsa.com
                   ; antonio.ferrari@sapfsa.com
                   ; elena.petrova@sapfsa.com
                   ; teresa.ruiz@sapfsa.com
                   ; joana.oliveira@sapfsa.com
                   ; pedro.dasilva@sapfsa.com
                   ; ravi.pandey@sapfsa.com
                   ; john.li@sapfsa.com
                   ; aiko.abe@sapfsa.com
                   ; monique.legrand@sapfsa.com
                   ; stefan.bosch@sapfsa.com
                   ; miguel.rodriguez@sapfsa.com
                   ; matthew.zhao@sapfsa.com
                   ; michael.adams@sapfsa.com
                   ; donna@moore.com
                   ; richard@wilson.com
                   ; fsintegrationadmin
                   ; jane.citizen@stateofrosebud.com
                   ; john.citizen@stateofrosebud.com
                   ; granny.citizen@stateofrosebud.com
                   ; jason.citizen@stateofrosebud.com
                   ; calvin.citizen@stateofrosebud.com
                   ; carol.citizen@stateofrosebud.com
                   ; elizabeth.miller@stateofrosebud.com
                   ; matthew.miller@stateofrosebud.com
                   ; teresa.citizen@stateofrosebud.com
                   ; amanda.smith@stateofrosebud.com
                   ; jack.smith@stateofrosebud.com
                   ; josephine.citizen@stateofrosebud.com
                   ; homer.citizen@stateofrosebud.com
                   ; jill.citizen
                   ; joey.citizen
    

    Ensure you have selected Enable code execution in the settings panel of the ImpEx Import console to skip any users associated with modules that are not included in your build and prevent errors.

  4. If your content is valid ImpEx, click Import content to update the passwords and enable login for the defined users.