public Dictionary <string, dynamic> ChangeUser(CDUser user, bool inEverybodyRole)
        {
            Dictionary <string, dynamic> changeUserArgs = new Dictionary <string, dynamic>();

            changeUserArgs["ID"]              = user.ID;
            changeUserArgs["Name"]            = user.Name;
            changeUserArgs["DisplayName"]     = user.DisplayName;
            changeUserArgs["Mail"]            = user.Mail;
            changeUserArgs["Description"]     = user.Description;
            changeUserArgs["OfficeNumber"]    = user.OfficeNumber;
            changeUserArgs["MobileNumber"]    = user.MobileNumber;
            changeUserArgs["HomeNumber"]      = user.HomeNumber;
            changeUserArgs["InEverybodyRole"] = inEverybodyRole;

            var result = m_restClient.CallApi("/cdirectoryservice/changeuser", changeUserArgs);

            return(result);
        }
        // Illustrates usage of /cdirectoryservice/createuser to create a new CUS user, presumes
        //  username and mail are the same.  Return value is user's UUID
        public Dictionary <string, dynamic> CreateUser(CDUser user, bool passwordNeverExpires, bool forcePassChange, bool sendEmail, bool sendSMS, bool inEverybodyRole)
        {
            Dictionary <string, dynamic> createUserArgs = new Dictionary <string, dynamic>();

            createUserArgs["Name"]                    = user.Name;
            createUserArgs["DisplayName"]             = user.DisplayName;
            createUserArgs["Mail"]                    = user.Mail;
            createUserArgs["Description"]             = user.Description;
            createUserArgs["OfficeNumber"]            = user.OfficeNumber;
            createUserArgs["MobileNumber"]            = user.MobileNumber;
            createUserArgs["HomeNumber"]              = user.HomeNumber;
            createUserArgs["PasswordNeverExpire"]     = passwordNeverExpires;
            createUserArgs["Password"]                = user.Password;
            createUserArgs["ForcePasswordChangeNext"] = forcePassChange;
            createUserArgs["SendEmailInvite"]         = sendEmail;
            createUserArgs["SendSmsInvite"]           = sendSMS;
            createUserArgs["InEverybodyRole"]         = inEverybodyRole;

            var result = m_restClient.CallApi("/cdirectoryservice/createuser", createUserArgs);

            return(result);
        }