question

sidlondon avatar image
sidlondon asked

Group policies to allow new players to auto-join?

{
    "Action": "Create",
    "Effect": "Allow",
    "Resource": "pfrn:group--*!*/Applications/*",
    "Principal": {
      "ChildOf": {
        "EntityType": "title",
        "EntityId": "48621"
      }
    },
    "Comment": "Allow all entities to apply to join the group",
    "Condition": null
  },
  {
    "Action": "Accept",
    "Effect": "Allow",
    "Resource": "pfrn:group--group!*/Applications/*",
    "Principal": {
      "ChildOf": {
        "EntityType": "title",
        "EntityId": "48621"
      }
    },
    "Comment": "Allow any player to auto-join the group (no authorisation needed)",
    "Condition": null
  },


I have a few groups that I want new players to be able to automatically join on request via the client (so no one needs to accept their application). I've set up the attached group policy, but it doesn't appear to be working correctly. The group list shows that the player has sent an application, but it isn't being accepted.

Could someone point out where I'm going wrong? Many thanks.

unreal
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

·
Gosen Gao avatar image
Gosen Gao answered

To accept an application not only needs the permission of Applications, but also needs the permissions of Members and Roles, and that should be done by the Group Admins. We recommend that you can implement an Azure Function to call API Groups - Add Members - REST API (PlayFab Groups) | Microsoft Learn to add player to the Group directly.

3 comments
10 |1200

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

sidlondon avatar image sidlondon commented ·

Oh ok, so theres no way to do this just using the group policy? I don't want Group Admins to have to accept applications for 3 of my groups. I'd rather avoid using API if possible (plus, there doesn't appear to be an event type for group applications on the New Rule page to set a function up) .

0 Likes 0 ·
Gosen Gao avatar image Gosen Gao sidlondon commented ·

Sorry for the late reply.

To use Azure Function to add players to a group only need 2 API calls, one is ExecuteFunction from the client and another is AddMembers from within the Azure Function. If the policy works, you still need 2 API calls, one is ApplyToGroup and another is AcceptGroupApplication. I don't see much difference here.

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ sidlondon commented ·

Currently, there is no such feature for Group Admins to configure how other players join the their group. You can implement the workaround that Gosen has mentioned.

0 Likes 0 ·

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.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]