Hi Thilagavathi Duraisamy,
Setting the relationship between Role Collection and User Groups as well as the relationship between Role and Role template is done manually in the SAP Cloud Platform Cockpit.
You can do this in "Security".
If you want any user to be able to logon to the application by using SAP XSUAA you need to configure this.
I hope this answers your question!