cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to deactivate admin user account in hybris?

Former Member
0 Kudos
1,344

How to deactivate admin user account in hybris?

Accepted Solutions (0)

Answers (1)

Answers (1)

aimprosoft
Participant
0 Kudos

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