question

Davit Y. avatar image
Davit Y. asked

Api policy only for Client possible?

I need some api functions not to be available to the client, but to be available from claud script

how can I do this?

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

·
Citrus Yan avatar image
Citrus Yan answered

Sure, you can use API Access Policy to control access to the client APIs you specify, for more details please check out this doc: https://docs.microsoft.com/en-us/gaming/playfab/api-references/api-access-policy.

In addition, recently we modified the UpdatePolicy and GetPolicy API and the SDKs hasn’t kept up yet: https://community.playfab.com/questions/50207/cannot-change-api-policy.html

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

Davit Y. avatar image Davit Y. commented ·

I manage to change the policy but the point is that you need to deny access from the client side of "Group/CreateGroup", but so that it is available in cloudscript.

how do I do this?

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan Davit Y. commented ·

Group/CreateGroup belongs to Entity APIs, currently, PlayFab does not support blocking them. however, you can restrict the permissions of players by modifying read/write permission to some sepcific entities, please check out this thread for more details: https://community.playfab.com/questions/45471/which-policy-should-i-edit-for-groupsapi-and-dataa.html

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.