示例#1
0
        /// <summary>
        /// A basic add example
        /// </summary>
        /// <param name="organizationCode">This will be used as the initial organization for the user.</param>
        /// <param name="ID">This will be the User ID the user can use to login.  It will be permanent.</param>
        /// <param name="displayName">This will be the name of the new user</param>
        /// <param name="email">This will be the address in which the Activate User email will be sent</param>
        /// <returns></returns>
        public UsersModel Add(string organizationCode, string ID, string displayName, string email)
        {
            var myUser = new UsersModel
            {
                Organization = organizationCode,
                ID           = ID,
                DisplayName  = displayName,
                Email        = email
            };

            //Note that the user won't be activated until they set their password.  You should send the activation email when ready.  See the SendActivateUserEmail() example.

            return(APIUtil.AddUser(USISDKClient, myUser));
        }