We have a bunch of users and a bunch of different titles, assigning the same role to a user in every title takes ages.
Is there an API or some other automation to improve this situation?
We have a bunch of users and a bunch of different titles, assigning the same role to a user in every title takes ages.
Is there an API or some other automation to improve this situation?
Sounds awesome, but the users I meant are Studio users, not players. Will this approach still work?
It won't work. PlayFab APIs are designed for title and players. You may need to manually assign Roles for different studio users. However, you are able to create customized Roles and save it as Json file, so that you can upload this configuration file in other studios.
PlayFab provides APIs to get or edit Global Entity Policy and Profile Policy of a specific player –
You may create a CloudScript Azure Function to assign the permission automatically when the player is created in the title via Rule. However, please note that for a newly created player, it will take some time to initialize profiles (usually take a few minutes). Immediate triggered functions to edit profile policy may fail.
2 People are following this question.