SOAP API - GetUserNameFromProfile
GetUserNameFromProfile( profileName, profilevalue ) : String
Since: EngageIP v25.2
This method will return a user name based on the profile question name and value. Will return a null if the profile item does not exist or if the search results in more than one matching user.
Parameters:
profileName (String) - The name of the Profile Question to be searched. This is used with the combination of profile value.
profilevalue (String) - The value to be matched for the associated profile question name.
Returns:
An String representing the user name
Possible Exceptions:
INVALID PROFILE NAME
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /adminportal/webservice.asmx HTTP/1.1
Host: demo.logisense.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<AuthHeader xmlns="Logisense_EngageIP">
<Username>string</Username>
<Password>string</Password>
</AuthHeader>
</soap12:Header>
<soap12:Body>
<GetUserNameFromProfile xmlns="Logisense_EngageIP">
<profileName>string</profileName>
<profilevalue>string</profilevalue>
</GetUserNameFromProfile>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetUserNameFromProfileResponse xmlns="Logisense_EngageIP">
<GetUserNameFromProfileResult>string</GetUserNameFromProfileResult>
</GetUserNameFromProfileResponse>
</soap12:Body>
</soap12:Envelope>
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /adminportal/webservice.asmx HTTP/1.1
Host: demo.logisense.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "Logisense_EngageIP/GetUserNameFromProfile"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<AuthHeader xmlns="Logisense_EngageIP">
<Username>string</Username>
<Password>string</Password>
</AuthHeader>
</soap:Header>
<soap:Body>
<GetUserNameFromProfile xmlns="Logisense_EngageIP">
<profileName>string</profileName>
<profilevalue>string</profilevalue>
</GetUserNameFromProfile>
</soap:Body>
</soap:Envelope>