on 2020 Mar 27 11:36 AM
Request clarification before answering.
Hi, Gopaiah Jannu,
Unfortunately, Hybris doesn’t allow users to disable the admin account either via ImpEx or via the service layer.
Thus, you can’t do that even if you try to use legacy mode or disable the interceptor with the flag. (UPDATE Employee[disable.interceptor.types=validate])
In general, it is not recommended to disable the admin account, since this account is used for some cron jobs. Instead of disabling the account, you can just specify a very strong password.
You can still disable the admin account with this query, but be prepared for unexpected situations that may occur when starting CronJob or Sync, or something else.
UPDATE users SET p_logindisabled=1 where p_uid="admin"You can perform it directly in the database. ( Keep in mind that this query for MySQL may not work if you are using a different database.)
Then, restart the Hybris. Having done so, you will notice that the account is deactivated.
I hope this answers your question.
Best regards,
Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.