anchor.diff:  end_per_testcase(_, Config) ->
       % Remove everything that was created during a testcase
       oz_test_utils:remove_all_entities(Config).
  +
  
positive.code:         end, OriginalMap, maps:keys(OriginalMap)).
  
  
  put_config(Config) ->
      put(config, Config).
  
  
negative.code:     % Get all possible privileges
      [Node | _] = ?config(oz_worker_nodes, Config),
      AllPrivileges = rpc:call(Node, oz_api_privileges, all_privileges, []),
      % Try to set all combinations of privileges, both for User2 and Group2.
      Combinations = all_combinations(AllPrivileges),
      lists:foreach(
          fun(Privileges) ->
              % Set the privileges
              ?assert(check_set_privileges(204, User1, User2, onedata_user,
                  Privileges)),
              % View the privileges
              ?assert(check_view_privileges(200, User1, User2, onedata_user,
                  Privileges))
          end, Combinations),
      % Now for Group2
      lists:foreach(
          fun(Privileges) ->
              % Set the privileges
              ?assert(check_set_privileges(204, User1, Group2, user_group,
                  Privileges)),
              % View the privileges
              ?assert(check_view_privileges(200, User1, Group2, user_group,
                  Privileges))
          end, Combinations).
  
  
  
  