question

playfab-11 avatar image
playfab-11 asked

Can I create a policy that affect only 1 specific user?

I create a policy that allow GetContentDownloadURL

Action = "*",

ApiConditions = new ApiCondition() { HasSignatureOrEncryption = Conditionals.False },

Comment = "Allow client to download from CDN",

Resource = "pfrn:api--/Client/GetContentDownloadUrl",

Effect = EffectType.Allow, Principal = "*"

That work well, however I would like to have only 1 user able to access that permission. Is it possible?

Thank you

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

Currently we don't support API access policy that affects only 1 specific user. However, as a workaround, you can deny the specific client API and use its equivalent server API in server side logic such as CloudScript, where you can perform some checks on the player’s permissions, and if it has one, return the correct response.

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.