AddUser
Examples
UserManagementClient client = new UserManagementClient();
UserData userData = new UserData
{
UserName = "username",
PartyReferenceCode = "1000",
Password = "*********",
Email = "useremail@mail.com"
};
GeneralResult result = client.AddUser(userData);
Sample soap request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:uuid:e657a351-ae8c-42c5-b083-ebe5dcda5c0b" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soapenv:Header/>
<soapenv:Body>
<urn:AddUser>
<urn:UserData>
<urn:Email>p11123@mail.com</urn:Email>
<urn:PartyReferenceCode>1000</urn:PartyReferenceCode>
<urn:Password>q1w2e3r4111</urn:Password>
<urn:UserName>TestUser1</urn:UserName>
</urn:UserData>
</urn:AddUser>
</soapenv:Body>
</soapenv:Envelope>
Input
-
request Mandatory
Request dataObjectAddUser
AddUser-
UserData
User DataObjectUserData
User information-
AccessGroups
List of access groupsArraystring
-
CellularPhoneNumber
Cellular phone numberstring
-
City
Citystring
-
ClientRestriction
List of client restrictionsArrayObjectClientRestrictionType
Client restriction type-
IncludeSubParties
Include sub partiesbool
-
PartyReferenceCode Mandatory
Party reference codestring
-
-
CountryCode
Country code e.g. NL, NO SE etc.string
-
CountryFormat
Country format, e.g. SE, NO, NL, UK etc.string
-
Department
Departmentstring
-
Disabled
Disable user true or falsebool
-
Email Mandatory
Emailstring
-
EmploymentNumber
Employment numberstring
-
HouseNo
House numberstring
-
HouseNoExtension
House number extensionstring
-
LanguageCode
Language code, e.g. en, sv etc.string
-
PartyReferenceCode Mandatory
Party reference codestring
-
Password Mandatory
Passwordstring
-
PBXPhoneNumber
PBX phone numberstring
-
PhoneNumber
Phone numberstring
-
StateCode
State codestring
-
Street
Streetstring
-
UserGuid
User GUIDstring
-
UserName Mandatory
User namestring
-
UserRole
User roleEnumUserRoleType
User role type-
CEO
CEO -
Economy
Economy -
InvoiceReceiver
Invoice receiver -
Other
Other -
PrimaryContact
Primary contact -
ReportReceiver
Report receiver -
TrustAccountingReceiver
Trust account receiver
-
-
ZipCode
Zip codestring
-
-
Output
Error codes:
- 1 : error message from ARC server.
AddUserResponse
-
AddUserResult
Result of AddUserObjectAddUserResult
Class for representing GetUsers method result-
Result
The result of the request. Indicating success or error.ObjectResultType
Common result type.-
ResultCode Mandatory
The result code0
means ok, anything else usually indicates a warning or an error. Look at accompanying result text for more details on result.int
-
ResultText Mandatory
Text information of the result. Usually contains a warning or error message when result code is indicating other than success.string
-
-
UserGuid
UserGuid of just added userstring
-
DeleteUser
Examples
UserManagementClient client = new UserManagementClient();
string userGuid = "74071F4C-7354-4669-AFFC-500585AA0185";
GeneralResult result = client.DeleteUser(userGuid);
Sample soap request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:uuid:e657a351-ae8c-42c5-b083-ebe5dcda5c0b">
<soapenv:Header/>
<soapenv:Body>
<urn:DeleteUser>
<urn:UserGuid>86d4d885-2b01-4071-ba34-b22a4e3b28d2</urn:UserGuid>
</urn:DeleteUser>
</soapenv:Body>
</soapenv:Envelope>
Input
-
request Mandatory
Request dataObjectDeleteUser
DeleteUser-
UserGuid
User guidstring
-
Output
Error codes:
- 1 : error message from ARC server.
DeleteUserResponse
-
DeleteUserResult
Result of DeleteUserObjectGeneralResult
A general result containing a result with result code and result text.-
Result
The result of the request.ObjectResultType
Common result type.-
ResultCode Mandatory
The result code0
means ok, anything else usually indicates a warning or an error. Look at accompanying result text for more details on result.int
-
ResultText Mandatory
Text information of the result. Usually contains a warning or error message when result code is indicating other than success.string
-
-
GetAccessGroups
Examples
UserManagementClient client = new UserManagementClient();
GetAccessGroupsResult result = client.GetAccessGroups();
Sample soap request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:uuid:e657a351-ae8c-42c5-b083-ebe5dcda5c0b">
<soapenv:Header/>
<soapenv:Body>
<urn:GetAccessGroups/>
</soapenv:Body>
</soapenv:Envelope>
Input
-
request Mandatory
Request dataObjectGetAccessGroups
GetAccessGroups
Output
Error codes:
- 1 : error message from ARC server.
GetAccessGroupsResponse
-
GetAccessGroupsResult
Result of GetAccessGroupsObjectGetAccessGroupsResult
Class for representing GetAccessGroups method result-
AccessGroups
List of access groupsArraystring
-
Result
The result of the request. Indicating success or error.ObjectResultType
Common result type.-
ResultCode Mandatory
The result code0
means ok, anything else usually indicates a warning or an error. Look at accompanying result text for more details on result.int
-
ResultText Mandatory
Text information of the result. Usually contains a warning or error message when result code is indicating other than success.string
-
-
GetUsers
Examples
UserManagementClient client = new UserManagementClient();
ClientRestrictionType[] request = {
new ClientRestrictionType{
IncludeSubParties = true,
PartyReferenceCode = "1000"
},
new ClientRestrictionType{
IncludeSubParties = true,
PartyReferenceCode = "1000"
}
};
GetUsersResult result = client.GetUsers(request);
Sample soap request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:uuid:e657a351-ae8c-42c5-b083-ebe5dcda5c0b">
<soapenv:Header/>
<soapenv:Body>
<urn:GetUsers>
<urn:ClientRestrictions>
<urn:ClientRestrictionType>
<urn:IncludeSubParties>false</urn:IncludeSubParties>
<urn:PartyReferenceCode>1000</urn:PartyReferenceCode>
</urn:ClientRestrictionType>
</urn:ClientRestrictions>
</urn:GetUsers>
</soapenv:Body>
</soapenv:Envelope>
Input
-
request Mandatory
Request dataObjectGetUsers
GetUsers-
ClientRestrictions
Client restrictionArrayObjectClientRestrictionType
Client restriction type-
IncludeSubParties
Include sub partiesbool
-
PartyReferenceCode Mandatory
Party reference codestring
-
-
Output
Error codes:
- 1 : error message from ARC server.
GetUsersResponse
-
GetUsersResult
Result of GetUsersObjectGetUsersResult
Class for representing GetUsers method result-
Result
The result of the request. Indicating success or error.ObjectResultType
Common result type.-
ResultCode Mandatory
The result code0
means ok, anything else usually indicates a warning or an error. Look at accompanying result text for more details on result.int
-
ResultText Mandatory
Text information of the result. Usually contains a warning or error message when result code is indicating other than success.string
-
-
Users
List of usersArrayObjectUserData
User information-
AccessGroups
List of access groupsArraystring
-
CellularPhoneNumber
Cellular phone numberstring
-
City
Citystring
-
ClientRestriction
List of client restrictionsArrayObjectClientRestrictionType
Client restriction type-
IncludeSubParties
Include sub partiesbool
-
PartyReferenceCode Mandatory
Party reference codestring
-
-
CountryCode
Country code e.g. NL, NO SE etc.string
-
CountryFormat
Country format, e.g. SE, NO, NL, UK etc.string
-
Department
Departmentstring
-
Disabled
Disable user true or falsebool
-
Email Mandatory
Emailstring
-
EmploymentNumber
Employment numberstring
-
HouseNo
House numberstring
-
HouseNoExtension
House number extensionstring
-
LanguageCode
Language code, e.g. en, sv etc.string
-
PartyReferenceCode Mandatory
Party reference codestring
-
Password Mandatory
Passwordstring
-
PBXPhoneNumber
PBX phone numberstring
-
PhoneNumber
Phone numberstring
-
StateCode
State codestring
-
Street
Streetstring
-
UserGuid
User GUIDstring
-
UserName Mandatory
User namestring
-
UserRole
User roleEnumUserRoleType
User role type-
CEO
CEO -
Economy
Economy -
InvoiceReceiver
Invoice receiver -
Other
Other -
PrimaryContact
Primary contact -
ReportReceiver
Report receiver -
TrustAccountingReceiver
Trust account receiver
-
-
ZipCode
Zip codestring
-
-
Ping
0
if everything went ok. If something went wrong
it will return a result code other than 0
and the result text will contain
information about error. However if service is unreachable, e.g. not started, the
service will not respond at all.Examples
UserManagementClient client = new UserManagementClient();
try
{
GeneralResult result = client.Ping();
if (result.Result.ResultCode != 0)
{
throw new Exception(result.Result.ResultText ?? "Unknown error");
}
}
catch (Exception e)
{
throw new Exception("Failed to ping user service.", e);
}
Sample soap request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:uuid:e657a351-ae8c-42c5-b083-ebe5dcda5c0b">
<soapenv:Header/>
<soapenv:Body>
<urn:Ping/>
</soapenv:Body>
</soapenv:Envelope>
Input
-
request Mandatory
Request dataObjectPing
Ping
Output
0
if ping was successful,
otherwise read result text for error information.
GeneralResultResponse
-
GeneralResult
Result of GeneralResultObjectGeneralResult
A general result containing a result with result code and result text.-
Result
The result of the request.ObjectResultType
Common result type.-
ResultCode Mandatory
The result code0
means ok, anything else usually indicates a warning or an error. Look at accompanying result text for more details on result.int
-
ResultText Mandatory
Text information of the result. Usually contains a warning or error message when result code is indicating other than success.string
-
-
UpdateUser
Examples
UserManagementClient client = new UserManagementClient();
UserData userData = new UserData
{
UserName = "username",
PartyReferenceCode = "1000",
Email = "useremail@mail.com",
PBXPhoneNumber = "+380688686868",
Street = "street"
};
GeneralResult result = client.UpdateUser(userData);
Sample soap request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:uuid:e657a351-ae8c-42c5-b083-ebe5dcda5c0b" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soapenv:Header/>
<soapenv:Body>
<urn:UpdateUser>
<urn:UserData>
<urn:ClientRestriction>
<urn:ClientRestrictionType>
<urn:IncludeSubParties>false</urn:IncludeSubParties>
<urn:PartyReferenceCode>0183</urn:PartyReferenceCode>
</urn:ClientRestrictionType>
</urn:ClientRestriction>
<urn:Disabled>1</urn:Disabled>
<urn:Email>p1@gggg.12345</urn:Email>
<urn:PartyReferenceCode>1000</urn:PartyReferenceCode>
<urn:Password>112</urn:Password>
<urn:UserGuid>86d4d885-2b01-4071-ba34-b22a4e3b28d2</urn:UserGuid>
<urn:UserName>q1w2e3r4t5</urn:UserName>
</urn:UserData>
/urn:UpdateUser>
</soapenv:Body>
</soapenv:Envelope>
Input
-
request Mandatory
Request dataObjectUpdateUser
UpdateUser-
UserData
User dataObjectUserData
User information-
AccessGroups
List of access groupsArraystring
-
CellularPhoneNumber
Cellular phone numberstring
-
City
Citystring
-
ClientRestriction
List of client restrictionsArrayObjectClientRestrictionType
Client restriction type-
IncludeSubParties
Include sub partiesbool
-
PartyReferenceCode Mandatory
Party reference codestring
-
-
CountryCode
Country code e.g. NL, NO SE etc.string
-
CountryFormat
Country format, e.g. SE, NO, NL, UK etc.string
-
Department
Departmentstring
-
Disabled
Disable user true or falsebool
-
Email Mandatory
Emailstring
-
EmploymentNumber
Employment numberstring
-
HouseNo
House numberstring
-
HouseNoExtension
House number extensionstring
-
LanguageCode
Language code, e.g. en, sv etc.string
-
PartyReferenceCode Mandatory
Party reference codestring
-
Password Mandatory
Passwordstring
-
PBXPhoneNumber
PBX phone numberstring
-
PhoneNumber
Phone numberstring
-
StateCode
State codestring
-
Street
Streetstring
-
UserGuid
User GUIDstring
-
UserName Mandatory
User namestring
-
UserRole
User roleEnumUserRoleType
User role type-
CEO
CEO -
Economy
Economy -
InvoiceReceiver
Invoice receiver -
Other
Other -
PrimaryContact
Primary contact -
ReportReceiver
Report receiver -
TrustAccountingReceiver
Trust account receiver
-
-
ZipCode
Zip codestring
-
-
Output
Error codes:
- 1 : error message from ARC server.
UpdateUserResponse
-
UpdateUserResult
Result of UpdateUserObjectGeneralResult
A general result containing a result with result code and result text.-
Result
The result of the request.ObjectResultType
Common result type.-
ResultCode Mandatory
The result code0
means ok, anything else usually indicates a warning or an error. Look at accompanying result text for more details on result.int
-
ResultText Mandatory
Text information of the result. Usually contains a warning or error message when result code is indicating other than success.string
-
-