In Central Admin, the profile property for Responsibility is configured this way:
When I call upon GetUserProfileByName using the User Profile Service, I get this back in the responseXML:
As you can see, only the Name ("SPS-Responsibility") is returned.
Is there a way for the Display Name ("Responsibility") to be returned in the XML as well?
This is the soap envelope I am using:
var soapEnv =
"<?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:Body> \
<GetUserProfileByName xmlns='http://microsoft.com/webservices/SharePointPortalServer/UserProfileService'> \
<AccountName>domain\\username</AccountName> \
</GetUserProfileByName> \
</soap:Body> \
</soap:Envelope>";