#1 2024-06-12 14:22:01

marcioribeiro1979
Member
Registered: 2023-04-18

Disable an user via script

Hi,

Is it possible to disable an user via script ?

I noticed that, when I check the option "Account inhibition:" in "User Edit" screen, I new record is created in rs_user_property table with accountInhibited = True.
So, I believe that disabling an user is not a simple flag that I need to change in database.

Appreciate if someone could provide any ideas...

Thanks


Marcio

Offline

#2 2024-06-12 14:32:59

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Disable an user via script

Hi Marcio,

propertiesService.setPropertyValue(u, ReportServerModule.USER_PROPERTY_ACCOUNT_INHIBITED, "true")

where u is your user, and propertiesService is net.datenwerke.security.service.usermanager.UserPropertiesService

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB