I am trying to have a user be able to create a sub-user. To do this, I need to create the new user AND link the new user and "parent" user together. The client (unity) is building the RegisterPlayFabUserRequest just fine, and passes that to my cloud script. The "Parent" user is signed in, so CloudScript has access to the "parent" playerId. Cloud script needs to register the new "child" account with the provided info (from the request), then set a parentID field in the new account to point to the "parent" account, AND set the childID field in the "parent" account to the player ID of the newly created "child" account. All of this is in place, however, I can't find the CloudScript version of PlayFabClientAPI.RegisterPlayFabUser. Once I have that call, I can easily create the new user, grab the playerId from the register response, and save it in the parent user data. Again, the question is, how do I call RegisterPlayFabUser from within cloudscript? I don't want to issue multiple calls from the client to the server, Yes, I know I could do a register call, followed by calls to link the parent to the child, and the child to the parent, but issuing 3 calls that are not guaranteed to all make it is asking for trouble with dangling accounts.
Please keep in mind that I'm no JavaScript expert, so please provide as much detail as possible.
,I am trying to have a user be able to create a sub-user. To do this, I need to create the new user AND link the new user and "parent" user together. The client (unity) is building the RegisterPlayFabUserRequest just fine, and passes that to my cloud script. Cloud script needs to register the new account with the provided info, then set a parentID field in the new account to point to the calling account, AND set the childID field in the calling account to the player ID of the newly created account. All of this is in place, however, I can't find the CloudScript version of PlayFabClientAPI.RegisterPlayFabUser.