question

Logan Branjord avatar image
Logan Branjord asked

How to enforce Unique Guild Name?

We are porting to Playfab from Web Server and we have Guild Data that we plan to store somewhere. Wondering how we would allow each client to update the guild data? And in-turn enforce that the guild names are unique, by querying to see if name exists first.

It's basically a need for a data store, that can be updated by any client. Is this possible with Playfab currently in any way?

1 comment
10 |1200

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

Logan Branjord avatar image Logan Branjord commented ·

So I guess it looks like we don't have this feature yet - but i'm hoping I overlooked something :) So far, in a couple days we were able to come to PlayFab and successfully integrate the registration, login. It's quite nice so far. Thanks :)

0 Likes 0 ·
Seth Du avatar image
Seth Du answered

If you are using the Group Feature, for example APIs are like Groups - Create Group, Groups - Delete Group and etc. the Group Name is unique and duplicated name in the request when calling CreateGroup will be responded with error “GroupNameNotAvailable”.

Shared group is more like a legacy one that offers group-like feature before the current entity group is released. Hence my recommendation is make use of entity group feature, and you may find detailed documentation on: https://docs.microsoft.com/en-us/rest/api/playfab/groups/groups?view=playfab-rest.

If you are not satisfied with default group management policy, you can change it via editing API policy and here is a thread you may refer to: https://community.playfab.com/questions/23016/entity-api-group-methods-policy-error.html.

10 |1200

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

Logan Branjord avatar image
Logan Branjord answered

Seems like somehow this could help

https://api.playfab.com/blog/announcing-groups-for-guilds-friends-clans-and-more

So I see we can access a common set of data, which cures my need for "Guild Data" like guild level, contribution stats, membership roles, etc. Then all that's left is to be able to enforce a unique name to the guild so nobody can take an already taken name.

1 comment
10 |1200

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

Logan Branjord avatar image Logan Branjord commented ·

Hopefully this inquiry is useful to someone. But would the Shared Group ID being assigned, be my way of ensuring unique guild name? So "Battlemasters" would be the ID, then it would be not available to any new person who wanted to start a guild with that name?

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.