question

vasan_routh avatar image
vasan_routh asked

Client/UpdateSharedGroupData: NotAuthorized

When the same client who created the shared data group tries to update data this error message shows up. How can I authorize the client?

I have created a shared data group on players the first login with his Playfab ID.

  • I thought the reason might be there are no members in the shared data group, so I added one. But still, the same error shows up.
  • I tried both with cloud script and client API but it's showing the same :(

Following is the Client API I have used to update the shared data group:

        PlayFabClientAPI.UpdateSharedGroupData(new UpdateSharedGroupDataRequest
        {
            SharedGroupId= PlayFabUserId,
            Data = new Dictionary<string, string>()
            {
               {"BattleMatchData",PlayFab.PluginManager.GetPlugin<ISerializerPlugin>(PluginContract.PlayFab_Serializer).SerializeObject(myPlayerDatalist) }
            },
            Permission = UserDataPermission.Public
        }, result => Debug.Log("Data Updated"),
        error => {
            Debug.Log(error.GenerateErrorReport());
        });
apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

May I ask is the caller a member of this shared group? Please understand that only the member of a Shared Group can update the data.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.