2016-04-27 8 views
0

gesperrt Ich Benutzer erschaffe RemoteUserStoreManagerService .When mit i versuchen Benutzer mit derselben ID hinzufügen, deren Konto gesperrt ist i erhalten eine Fern Ausnahme, dassHat WSO2 jede API zeigt, ob Benutzerkonto überprüfen

„Benutzername existiert bereits. Wähle einen neuen Benutzernamen. "

Gibt es eine API, mit der ich überprüfen kann, ob das Benutzerkonto gesperrt ist, so dass ich eine Wiederherstellungsmail erneut senden kann.

Antwort

1

Sie können dazu den RemoteUserStoreManagerService verwenden. Verwenden Sie die getUserClaimValues-API wie folgt.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.um.carbon.wso2.org"> 
    <soapenv:Header/> 
    <soapenv:Body> 
     <ser:getUserClaimValues> 
     <!--Optional:--> 
     <ser:userName>hasinitg</ser:userName> 
     <!--Optional:--> 
     <ser:profileName>default</ser:profileName> 
     </ser:getUserClaimValues> 
    </soapenv:Body> 
</soapenv:Envelope> 

Es wird Ansprüche wie folgt zurückgeben. Dann können Sie AccountLocked Anspruch bekommen

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> 
    <soapenv:Body> 
     <ns:getUserClaimValuesResponse xmlns:ns="http://service.ws.um.carbon.wso2.org" xmlns:ax2668="http://dao.service.ws.um.carbon.wso2.org/xsd" xmlns:ax2662="http://core.user.carbon.wso2.org/xsd" xmlns:ax2663="http://api.user.carbon.wso2.org/xsd" xmlns:ax2666="http://common.mgt.user.carbon.wso2.org/xsd" xmlns:ax2670="http://tenant.core.user.carbon.wso2.org/xsd"> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>sub</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasinitg</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>phone_number</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>0772254810</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/mobile</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>0772254810</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:meta.lastModified</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>2016-04-28T08:32:31</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>preferred_username</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasinitg</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>given_name</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasinitg</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/identity/accountDisabled</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>false</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/identity/lastLoginTime</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>1461812009558</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/fullname</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasinitg</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://axschema.org/contact/country/home</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>Sri Lanka</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/identity/lastPasswordUpdateTime</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>1461811974908</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/streetaddress</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>32/35A,Ganegoda</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>Sri Lanka</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>name</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasinitg</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:emails.home</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>[email protected]</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:id</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>e612fe60-8680-4fb7-a4bd-373baed85106</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>family_name</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>gunasinghe</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/role</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>Internal/everyone</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:addresses.streetAddress</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>32/35A,Ganegoda</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:name.familyName</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>gunasinghe</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>fullname</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasinitg</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://axschema.org/namePerson/last</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>gunasinghe</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mobile</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>0772254810</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/username</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasinitg</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:emails</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasini_home.com</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/lastname</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>gunasinghe</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/telephone</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>0772254810</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:phoneNumbers.mobile</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>0772254810</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:userName</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasinitg</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>country</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>Sri Lanka</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/givenname</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasinitg</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:emails.work</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasini_work.com</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>hasinitg</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>email</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>[email protected]</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/identity/accountLocked</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>false</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/streetaddress</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>32/35A,Ganegoda</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>http://wso2.org/claims/country</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>Sri Lanka</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:meta.created</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 

      <ax2668:claimUri>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>gunasinghe</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:addresses.country</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>Sri Lanka</ax2668:value> 
     </ns:return> 
     <ns:return xsi:type="ax2668:ClaimDTO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <ax2668:claimUri>urn:scim:schemas:core:1.0:meta.location</ax2668:claimUri> 
      <ax2668:description xsi:nil="true"/> 
      <ax2668:dialectURI xsi:nil="true"/> 
      <ax2668:displayOrder>0</ax2668:displayOrder> 
      <ax2668:displayTag xsi:nil="true"/> 
      <ax2668:regEx xsi:nil="true"/> 
      <ax2668:required>false</ax2668:required> 
      <ax2668:supportedByDefault>false</ax2668:supportedByDefault> 
      <ax2668:value>https://localhost:9443/wso2/scim/Users/e612fe60-8680-4fb7-a4bd-373baed85106</ax2668:value> 
     </ns:return> 
     </ns:getUserClaimValuesResponse> 
    </soapenv:Body> 
</soapenv:Envelope> 
+0

Danke .Es funktioniert. Außerdem konnte ich den Kontosperrungs-Anspruch allein mit getUserClaimValueForClaims abrufen. – Althaf

+0

Wenn ich registerUser von userinformationrecoveryservice mit Authentication.Policy.Account.Lock.On.Creation = true verwende, sperrt es den Benutzer beim Erstellen. Aber wenn ich Benutzer mit RemoteUserStoreManagerService hinzufügen, wird der Benutzer nicht gesperrt. Ist es das erwartete Verhalten? – Althaf

+0

Wenn Sie den Identity Management Event-Listener aktiviert haben, sollte der Benutzer in beiden Fällen gesperrt sein –

2

In Identity Server 5.1.0 können Sie getAllUserIdentityClaims Methode von UserIdentityManagementAdminService verwenden. Es werden alle Identitätsansprüche des Benutzers zurückgegeben und von dort aus können Sie den Wert des accountLocked-Anspruchs überprüfen.

+0

Ich habe versucht, was Sie gesagt haben, aber es gibt mir nur die Admin claims.Where sollte ich den Benutzernamen in der Anforderung übergeben. – Althaf

+0

Ich kann auch nicht das Attribut accountlocked im Datenspeicher finden. Obwohl ich sehen kann, dass das Konto in der Admin-Konsole gesperrt ist. Gibt es eine Konfiguration, die ich ändern muss – Althaf