Disable user by android code

Hello everyone,

I am trying to implement disabling user by code, but I failed.
I have tried with changing the property “userStatus” whit this code:

  user.setProperty( "userStatus", "DISABLED" );

But it did not work. Is “userStatus” system property and I have no access to it ?

You cannot change this property through any API. Hovewer, you can change user status using application console.
Best regards,