Use of BAPI_USER_CREATE1 in a CUA environment
We're trying to create users using function BAPI_USER_CREATE1 from a child client in a CUA environment (SAP ECC 6.0). The goal is to grant access to the user into the same child client.
When using the function, the return message says the user has been created successfully, but the user only exists in the child client and not the CUA client.
My understanding of the function BAPI_USER_CREATE1 was it would first create the user in the central CUA client, then assign the child client to the user profile created in the central system. This assumption is based on the code in BAPI_USER_CREATE which is called by BAPI_USER_CREATE1.
My BASIS support suggested specifying the CUA client as the RFC destination, but this results in an authorization error. "You are not authorized to create users in group".
Could anyone shed some light on the correct method to use BAPI_USER_CREATE1 from a child client in a CUA system?