@Brendan @SethDu @Citrus Yan
Our App users all logged in through Android and iOS device ID, and we do not have them link to social N/W to discover friend.. The only way user-A can invite user-B to join their group is through their phone book, where they send a text message that has a deep-link, which has a play load with their PlayFabID and GroupID (Since User-A does not know User-B's PlayFab ID he cannot use "InviteToGroup" method).. Similar to: https://community.playfab.com/questions/21616/error-code-1089-when-addmembers-request-is-called.html?childToView=21621#answer-21621
Hence we have the User-A send a Text message to User-B, that that the GroupID they are invited. Ideally, now User-B has to apply for "ApplyToGroup" and User-A has to "AcceptGroupApplication". Instead, we want to be able to have User-B, Auto join User_A's group using the "AddMembers" Group API method. https://docs.microsoft.com/en-us/rest/api/playfab/groups/groups/AddMembers?view=playfab-rest
When we try to use that on cloud script we are getting errors, as User-B is not he Administrator of User-A's Group. Hence we would like to be able to Authenticate via EntityID and Secret, and execute "AddMembers" API method and have User-B join User-A's Group, and send them a Notification as well. Seems like there is not enough documentation on how to Login using Entity and Secret on CloudScript? We do not want to share the Secret to the client to be able to do this?
What is the recommend way to get this Auto Join group flow working, with out compromising any security. Is there an example code that you can share that shows how to use secret to login and execute EntityAPI on cloudScript?