anchor.diff:                              {login, "existing_user"},
                               {name, "Existing User"},
                               {teams, ["Updated team"]},
  -                            {email, "some.other@email.com"},
  +                            {emails, ["some.other@email.com"]},
                               {dn_list, ["O=new-dn"]}
                           ],
                       % User record after updating teams
  
positive.code:                                 _ -> {error, reason}
                              end
                          end),
                      ?assertEqual({ok, #veil_document{record = #user{}}}, user_logic:get_user({login, "a"})),
                      ?assertEqual({ok, #veil_document{record = #user{}}}, user_logic:get_user({email, "a"})),
                      ?assertEqual({ok, #veil_document{record = #user{}}}, user_logic:get_user({uuid, "a"})),
  
negative.code:                     meck:expect(dao_lib, apply,
                          fun(dao_users, remove_user, [Key], _) ->
                              case Key of
                                  {global_id, GID} when is_list(GID) -> ok;
                                  {login, Login} when is_list(Login) -> ok;
                                  {email, Email} when is_list(Email) -> ok;
                                  {uuid, UUID} when is_list(UUID) -> ok;
  