| IdentityControllerCreateIdentityUser Method (Int32, Int32, Boolean, SqlConnection, SqlTransaction) |
Creates User for Identity setting the UserName to IdentityId.
Namespace:
Omada.OE.Solution.OIM.AppLogic
Assembly:
Omada.OE.Solution.OIM.AppLogic (in Omada.OE.Solution.OIM.AppLogic.dll) Version: 15.0.0.0
Syntaxpublic static int CreateIdentityUser(
int identityId,
int userNamePropertyId,
bool connectToIdentityUser,
SqlConnection dbConnection,
SqlTransaction dbTransaction
)
Parameters
- identityId
- Type: SystemInt32
Identity based on which the user is created - userNamePropertyId
- Type: SystemInt32
Identity property from where the userName should be populated - connectToIdentityUser
- Type: SystemBoolean
If true we try to connect to existing user with the same UserName without an existing identity reference - dbConnection
- Type: System.Data.SqlClientSqlConnection
- dbTransaction
- Type: System.Data.SqlClientSqlTransaction
Return Value
Type:
Int32
Returns the Id of the newly created user.
See Also