question

Richard Martija avatar image
Richard Martija asked

Able to get Avatar URL without ShowAvatarUrl enabled

I'm using PlayFabClientAPI.GetAccountInfo to get avatar URLs for other players in a multiplayer Unity game. This seems to work correctly but today I came across https://developer.playfab.com/en-us/{title_id}/settings/profile-view-constraints and saw that Avatar URL is unchecked by default.

It is my understanding that I should not be able to get avatar URLs on the client without checking the box on that page. But I seem to be getting them even with the box unchecked.

Am I misunderstanding the purpose of this setting or is this a bug?

Player 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.

1 Answer

·
brendan avatar image
brendan answered

No, the profile view constraints only affect the data returned in the player profile data (https://api.playfab.com/documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.PlayerProfileModel). The GetAccountInfo API predates the player profile and has not changed functionality (we have a commitment to no breaking changes). You get the profile data from calls to get leaderboards or the player's friend list, currently.

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.