AdministrationClientSelectUsernameByMemberRSN Method |
Returns the User Name from the Security Account linked to the submitted Member RSN.
The Member RSN can be fetched from the Web Service Method: SelectMembers
public ResultOfstring SelectUsernameByMemberRSN( ManagementGroupRequestOfguid request )
using (var svc = new AdministrationService.AdministrationClient()) { var request = new AdministrationService.ManagementGroupRequestOfguid(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin request.Value = new Guid("701d509f-2e8d-45c6-8b23-1e654557abe0");; //Required - RSN of member AdministrationService.ResultOfstring result = svc.SelectUsernameByMemberRSN(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }