WEBWebUserFindUsersByName

 

WEBWebUserFindUsersByName

Initial Build 2008.01
Deprecated Build 2015.01
xWeb Web Method
Response Type XML results

This method can be used to find a Web User by their User ID. This is used with the Sharepoint Role Provider. Generally this method works best when the user name is a numeric id.

Parameters

usernameToMatch (string).

Response

XmlNode

Sample Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<ns:Token>2306bae2-4f6f-499c-8b8b-daffb79abb9b</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:WEBWebUserFindUsersByName>
<ns:usernameToMatch>82896</ns:usernameToMatch>
</ns:WEBWebUserFindUsersByName>
</soapenv:Body>
</soapenv:Envelope>

Sample Response

Shortened for brevity.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>2306bae2-4f6f-499c-8b8b-daffb79abb9b</Token>
</AuthorizationToken>
</soap:Header>
<soap:Body>
<WEBWebUserFindUsersByNameResponse xmlns="http://www.avectra.com/2005/">
<WEBWebUserFindUsersByNameResult>
<Results recordReturn="1">
<Result>
<cst_key>207d1a31-567e-4a97-ac21-a1923a092755</cst_key>
<username>82896</username>
<ind_first_name>Robert</ind_first_name>
<ind_last_name>Smith</ind_last_name>
<ind_full_name_cp>Robert Smith</ind_full_name_cp>
<cst_web_login>bsmith</cst_web_login>
<cst_eml_address_dn>bsmith@avectra.com</cst_eml_address_dn>
<adr_city_state_code>Falls Church, VA  22043</adr_city_state_code>
</Result>
</Results>
</WEBWebUserFindUsersByNameResult>
</WEBWebUserFindUsersByNameResponse>
</soap:Body>
</soap:Envelope>

 

JSON Method

POST /xWeb/JSON/WEBWebUserFindUsersByName

DATA: JSON
{
    "WEBWebUserFindUsersByName": {
        "usernameToMatch": "{{indLastNameWebUserCreate}}"
    }
}

SAMPLE RESULT
HTTP STATUS: 200
DATA: JSON
{
    "Results": {
        "@recordReturn": "5",
        "Result": [
            {
                "cst_key": "33287dd0-399b-4270-8a72-1b2d3fde3477",
                "username": "6876",
                "ind_first_name": "Antonette",
                "ind_last_name": "Huel",
                "ind_full_name_cp": "Antonette Huel",
                "cst_web_login": null,
                "cst_eml_address_dn": null,
                "adr_city_state_code": null
            },
            {
                "cst_key": "4426ea5f-e7b3-48ea-a1a9-489a6545e92d",
                "username": "6018",
                "ind_first_name": "Ruth",
                "ind_last_name": "Huels",
                "ind_full_name_cp": "Ruth Huels",
                "cst_web_login": null,
                "cst_eml_address_dn": null,
                "adr_city_state_code": null
            },
            {
                "cst_key": "bb74247c-2d69-41eb-a025-a0f62dfdace8",
                "username": "6296",
                "ind_first_name": "Gayle",
                "ind_last_name": "Huel",
                "ind_full_name_cp": "Gayle Huel",
                "cst_web_login": null,
                "cst_eml_address_dn": null,
                "adr_city_state_code": null
            },
            {
                "cst_key": "0d0dbdde-6371-4b28-ad16-45c022a00919",
                "username": "6070",
                "ind_first_name": "Jaydon",
                "ind_last_name": "Huel",
                "ind_full_name_cp": "Jaydon Hallie Huel",
                "cst_web_login": null,
                "cst_eml_address_dn": null,
                "adr_city_state_code": "West Myah, TX  77433"
            },
            {
                "cst_key": "c4a8bf15-005a-4c00-8184-bbb11d7bb012",
                "username": "7006",
                "ind_first_name": "Lorenza",
                "ind_last_name": "Huel",
                "ind_full_name_cp": "Lorenza Huel",
                "cst_web_login": null,
                "cst_eml_address_dn": "Sedrick_Wisoky54@example.com",
                "adr_city_state_code": "Taylor, VA  22102"
            }
        ]
    }
}

 

Was this article helpful?
0 out of 0 found this helpful