WSO2 User Account Locking through Admin Services


  • Go to APIM_HOME/repository/conf/carbon.xml and make HideAdminServiceWSDLs property value true
    <HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
    
  • Start the server in osgi mode ./wso2server.sh -DosgiConsole
  • Type listadminservices in the console. You will see all the available admin services here.
  • Search for UserIdentityManagementAdminService. It should be there, if you installed the feature correctly. (http://chanukadissanayake.blogspot.com/2017/08/account-locking-with-wso2-api-manager.html)

    I have test this in my local machine and please find the steps below, which you could follow.
  • Goto SoupUI (It'll be easy).
  • Give the WSDL *https://localhost:9443/services/UserIdentityManagementAdminService?wsdl*
  • You could find lockUserAccount under UserIdentityManagementAdminService
  • Send a request on that (Make sure to give username & password for authentication. I have use the port 9443 in here). See the attachment. 
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ser="http://services.mgt.identity.carbon.wso2.org">
       <soap:Header/>
       <soap:Body>
          <ser:lockUserAccount>
             <!--Optional:-->
             <ser:userName>test1</ser:userName>
          </ser:lockUserAccount>
       </soap:Body>
    </soap:Envelope>
    
  • When the call is success, you will see the attached message and the user can't login anymore.

Comments

  1. Bicycle frame: Sizes, Stays & Colors -Tianium Art
    Bicycles and 2018 ford fusion hybrid titanium spades. The Bicycle frame is can titanium rings be resized a design that is designed to fit the most apple watch aluminum vs titanium traditional bicycle frame. All the sizes used 1xbet korean in this ford fusion hybrid titanium

    ReplyDelete

Post a Comment

Popular posts from this blog

How to fix SoapUI freeze in Mac OS

Salesforce Auto generate renewal Opportunity with Line Items (i.e. Opportunity Products)

Salesforce Create multiple child records based on a number field in the parent using flow