Documentation

AddSharedGroupMembers

Adds users to the set of those able to update both the shared data, as well as the set of users in the group. Only users in the group (and the server) can add new members. Shared Groups are designed for sharing data between a very small number of players, please see our guide: https://api.playfab.com/docs/tutorials/landing-players/shared-groups

Request Details

AddSharedGroupMembersRequest
Request Properties
PlayFabIds (required) List<String>

An array of unique PlayFab assigned ID of the user on whom the operation will be performed.

SharedGroupId (required) String

Unique identifier for the shared group.

POST https://{{TitleID}}.playfabapi.com/Server/AddSharedGroupMembers
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "SharedGroupId": "Clan Data",
  "PlayFabIds": [
    "D984A64B832",
    "F74A523E1562"
  ]
}
        

Response Details

AddSharedGroupMembersResult
Result Properties

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8


Authentication

SecretKey

Possible Error Codes

Name Code
AccountNotFound 1001
InvalidSharedGroupId 1088
UserAlreadyAdded 1235