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

This topic contains 1 reply, has 2 voices, and was last updated by  Angela 6 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11124

    laurabian
    Participant

    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

     

    #11167

    Angela
    Participant

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.