How to implement import option to Users in Administration.

Hi Cuba Team,

I want to implement importing option to Users Entity in Administration.

I extended the Users table. Then it has Password columns and Group attributes, I need to add import option to these all columns.

Can anyone help here.

Thanks!!

Hi,

Could you explain in more details your needs? Do you want to add export/import feature like Roles Browser has, or you want to import some data and update existing entities with this data?

Regards,
Gleb

Hi Cuba Team,

In sec_user table we are storing password in encrypted format.
Can anyone please say me, Which technique we are using to encrypt password in cuba studio.

Now, I need to convert string to that encrypted format.

Thanks!!

Hi,

Now I am able to import the data, But I want to know how to convert string format to encrypted format for password that we are using in cuba studio.

Thanks!!

PasswordEncryption bean is used in CUBA Platfom for password Encryption.

For example:

String passwordHash = passwordEncryption.getPasswordHash(user.getId(), password);

Regards,
Gleb

Thank you for your help!!

While creating users we can add roles and substituted roles, But I am not finding userRoles attribute in users table in the database.
Can you please say me where we are storing the userRoles in database.

Could you create a separate topic for your question, since it is not related to this topic.

Regards,
Gleb