cancel
Showing results for 
Search instead for 
Did you mean: 

Deactivating User vs disabling B2BCustomer

Former Member
0 Kudos

UserModel has 'loginDisabled' as an attribute. Also, B2BCustomerModel, inspite of having the same attribute (as it extends UserModel), has another attribute as 'active'. What is the difference in terms of funtionality of these two attributes in Hybris storefront.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member646143
Participant
0 Kudos

the default value for active is true,simply tells that wether the user is active or not.You can see that in core-items.xml

if loginDisabled is true means that particular user will not have access to hac/hmc however the user is active.

Error message: Login failed: User is disabled

Former Member
0 Kudos

Hi Riyazuddin,

If I change the value for active as false, the customer will not be able to login, either to storefront, or anywhere else. The same happens if loginDisabled is set as false.

So, I did not get what is the difference based on functionality because in both the cases the customer will not be able to login.

Also, the active attribute is created for B2BCustomerModel in b2bcommerce-items.xml, and not in core-items.xml. Since B2BCustomerModel extends UserModel and we get loginDisabled in B2BCustomerModel, then why is the attribute active used?