Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by anthojny · Mar 24, 2018 at 07:09 PM · apisAuthentication

ListGroupMembers() for nonmember

Hi, I want get members of clans (using group entity) for user, witch is not member of clan(group), but it fail on: /Group/ListGroupMembers: The claim was not allowed to perform the requested action based on the entity's access policy. Policy comment: By default, all requests are denied. If you expected this request to succeed, you may be missing a policy. See the permissions APIs in PlayFab's Admin Api to add a permission.

I tried add policy but pfrn:api--/Client/ don't have /ListGroupMembers and pfrn:api--/Entity/ is wrong too. How add permission for anybody get list group members?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Mar 26, 2018 at 05:02 AM

So, one thing to understand is that API policies and Group policies are completely distinct. What you actually would want in this case is something like this:

  {
    "Action": "Read",
    "Effect": "Allow",
    "Resource": "pfrn:group--group!*/Members/*",
    "Principal": {
      "ChildOf": {
        "EntityType": "title",
        "EntityId": "your_title_id"
      }
    },
    "Comment": "Allow users to view members of the group"
  },

We'll have more documentation available soon on the Group policies.

Comment

People who like this

0 Show 4 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image anthojny · Mar 26, 2018 at 07:42 AM 0
Share

Thank you, i look forward for documentation.

avatar image goldbug · Dec 22, 2018 at 11:35 PM 0
Share

Any progress on that documentation? I can't find where the group policies are documented.

avatar image Brendan ♦♦ goldbug · Dec 24, 2018 at 10:51 AM 1
Share

We're working on an update for Entities which is going to include a significant number of new API calls, in order to round out the functionality, along with documentation and tutorials. You can expect to see that in Q1.

avatar image kennyroy Brendan ♦♦ · Sep 18, 2019 at 04:39 AM 0
Share

Where's the documentation on this? I believe I'm stuck at Policy level not being able to get DisplayName from the Entity.GetProfiles() call.

https://community.playfab.com/questions/33833/odd-structure-of-account-profile-getprofile-getpro.html?childToView=33863#comment-33863

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Get Language List fails at Entity Authentication 2 Answers

    Authentication via Google Play Games 2 Answers

    Unreal Playfab Multiplayer,Unreal Multiplayer Playfab 1 Answer

    Can't use RequestMultiplayerServer API from Client 1 Answer

    Nintendo Switch & Unity: 400 Bad Request 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges