POST api/Security/RegisterExternalUser
Register an external user to the security model (User profile resides in a different system while the login/security is local)
Request Information
URI Parameters
None.
Body Parameters
Input for registering an external user
ExternalUserRegistrationInput| Name | Description | Type | Additional information |
|---|---|---|---|
| SourceSystem |
Source system |
ExternalSources |
None. |
| FirstName |
First Name of the User (Optional if [ReferenceId] is available) |
string |
Max length: 50 |
| LastName |
Last Name of the User (Optional if [ReferenceId] is available) |
string |
Max length: 50 |
| ReferenceCode |
Reference code of the User (Optional if [ReferenceId] is available) |
string |
Max length: 50 |
| DOB |
DOB of the user (Optional if [ReferenceId] is available) |
date |
None. |
| ReferenceId |
Reference Id of the external profile reference |
string |
Max length: 50 |
| Type |
Type of the user |
UserType |
None. |
| LoginName |
LoginName of User |
string |
Required Max length: 150 |
| Password |
Password of User |
string |
Required Max length: 30 Min length: 6 |
|
Email of User |
string |
Required Max length: 150 |
|
| Roles |
Roles to be assigned to the User |
Collection of string |
None. |
| SecurityAnswers |
List of security question answers |
Collection of SecurityDataInput |
None. |
Request Formats
application/json, text/json
{
"SourceSystem": 0,
"FirstName": "sample string 1",
"LastName": "sample string 2",
"ReferenceCode": "sample string 3",
"DOB": "2026-04-05T01:32:09.5258987-07:00",
"ReferenceId": "sample string 4",
"Type": 0,
"LoginName": "sample string 5",
"Password": "sample string 6",
"Email": "sample string 7",
"Roles": [
"sample string 1",
"sample string 2"
],
"SecurityAnswers": [
{
"QuestionID": 1,
"Answer": "sample string 2"
},
{
"QuestionID": 1,
"Answer": "sample string 2"
}
]
}
application/xml, text/xml
<ExternalUserRegistrationInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GBG.Base.WebAPI.Models">
<Email>sample string 7</Email>
<LoginName>sample string 5</LoginName>
<Password>sample string 6</Password>
<Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Roles>
<SecurityAnswers>
<SecurityDataInput>
<Answer>sample string 2</Answer>
<QuestionID>1</QuestionID>
</SecurityDataInput>
<SecurityDataInput>
<Answer>sample string 2</Answer>
<QuestionID>1</QuestionID>
</SecurityDataInput>
</SecurityAnswers>
<Type>Other</Type>
<DOB>2026-04-05T01:32:09.5258987-07:00</DOB>
<FirstName>sample string 1</FirstName>
<LastName>sample string 2</LastName>
<ReferenceCode>sample string 3</ReferenceCode>
<ReferenceId>sample string 4</ReferenceId>
<SourceSystem>Local</SourceSystem>
</ExternalUserRegistrationInput>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Success of the registration process
booleanResponse Formats
application/json, text/json
true
application/xml, text/xml
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>