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

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