Forum Discussion

Former_Member's avatar
Former_Member
Ideator I
8 years ago

How to deactivate an user and replace it with a new one

Hi all, I have to deactivate a user, as it is no longer present in the company and replace it with a new one. Can someone help me with guidelines? Thanks in advance. Laura  

1 Reply

  • Hi Laura You can refer below method by replacing User with your user name and similar for Id Innovator inn = this.getInnovator(); string aml = "<AML>"+ "<Item type='User' action= 'edit' where='[User].id='45E899CD2859442982EB22BB2DF683E5''>"+ "<logon_enabled>0</logon_enabled>"+ "</Item>"+ "</AML>"; Item res= inn.applyAML(aml); return this; Hope this will work in your case.