private UserRM CreateUserForAssociate(Commands.V1.User.CreateForAssociate cmd)
        {
            User user = User.Create(_users++, cmd.ContactId, IDMSSID.Create(cmd.IDMSSID), cmd.DepartmentCodeId,
                                    cmd.IsInternal, cmd.IsActive, cmd.HasEGMSAccess, cmd.DeactivationDate);

            if (_repository.UserExistsForAssociate(user, cmd.AssociateId))
            {
                throw new InvalidOperationException($"User already exists for Associate {cmd.AssociateId}");
            }

            _repository.AddUserForAssociate(user, cmd.AssociateId);

            return(Conversions.GetUserRM(user));
        }