private void FriendOne(string nameText) { PlayFabAdminAPI.UpdateUserData(new PlayFab.AdminModels.UpdateUserDataRequest() { PlayFabId = listController.friendList.ElementAt(0).Key, Permission = PlayFab.AdminModels.UserDataPermission.Public, Data = new Dictionary <string, string>() { { "TeamName", nameText } } }, result => Debug.Log(nameToSet.text + " added"), error => { Debug.Log(error.GenerateErrorReport()); }); }