HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
API Reference
These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Creates a User

Create a UserSecurity object

With the UserSecurity service you can perform the following operations when creating a User:

  • Create a User without Roles
  • Create a User with Roles
  • Create a user with additional PersonData
  • Create User with existing Contact

Create a User without Roles

BODY PARAMS:
{
    "$type": "Asi.Soa.Membership.DataContracts.User.UserSecurityData, Asi.Contracts",
    "UserName": "NewUserWithoutRoles",
    "Password": "TestPassword123!"
}

Create a User with Roles

BODY PARAMS:
{
    "$type": "Asi.Soa.Membership.DataContracts.User.UserSecurityData, Asi.Contracts",
    "UserName": "NewUserWithRoles",
    "Password": "TestPassword123!",
    "Roles": {
        "$type": "System.Collections.Generic.List`1[[Asi.Soa.Membership.DataContracts.User.RoleData, Asi.Contracts]], mscorlib",
        "$values": [
            {
                "$type": "Asi.Soa.Membership.DataContracts.User.RoleData, Asi.Contracts",
                "RoleKey": "8E5C7C1D-170B-4294-B646-2E60D2091DF8"
            }
        ]
    }
}

Create a user with additional PersonData

BODY PARAMS:
{
    "$type": "Asi.Soa.Membership.DataContracts.User.UserSecurityData, Asi.Contracts",
    "UserName": "JohnC",
    "Password": "TestPassword123!",
    "FirstName": "John",
    "LastName": "Craig",
    "Email": "[email protected]"
}

Create User with existing Contact

🚧

Contract Changes as of 20.3.70

Id and ContactKey have been replaced for UserId.

20.3.70
BODY PARAMS:
{
    "$type": "Asi.Soa.Membership.DataContracts.User.UserSecurityData, Asi.Contracts",
    "UserName": "NewUserWithExistingContact",
    "Password": "TestPassword123!",
    "UserId": "12345"
}
20.3.44
BODY PARAMS:
{
    "$type": "Asi.Soa.Membership.DataContracts.User.UserSecurityData, Asi.Contracts",
    "UserName": "NewUserWithExistingContact",
    "Password": "TestPassword123!",
    "ContactKey": "0f1e9312-cb91-482f-b14a-b3cf023a9d4a"
}
Language
Authorization
OAuth2
Click Try It! to start a request and see the response here!