anchor.diff:              {ok, #space_details{
                   name = SpaceName
               }} = oz_spaces:get_details(UserAuth, SpaceId),
  -            {ok, SpaceName};
  +            {ok, [{<<"spaceName">>, SpaceName}]};
           {error, invalid_token_value} ->
               gui_error:report_warning(<<"Invalid token value.">>)
       end;
  
positive.code:     UserAuth = op_gui_utils:get_user_rest_auth(),
      case space_logic:get_invite_user_token(UserAuth, SpaceId) of
          {ok, Token} ->
              {ok, Token};
          {error, _} ->
              gui_error:report_error(
                  <<"Cannot get invite user token due to unknown error.">>)
  
negative.code: handle(<<"userJoinGroup">>, [{<<"token">>, Token}]) ->
      UserAuth = op_gui_utils:get_user_rest_auth(),
      case user_logic:join_group(UserAuth, Token) of
          {ok, GroupId} ->
              {ok, #document{
                  value = #onedata_group{
                      name = GroupName
                  }}} = group_logic:get(UserAuth, GroupId),
              {ok, [{<<"groupName">>, GroupName}]};
          {error, _} ->
              gui_error:report_error(
                  <<"Cannot join group due to unknown error.">>)
  