This article may get you started. It lists the APIs used to get the team template and then the roles from that template:
https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS197190
This article may get you started. It lists the APIs used to get the team template and then the roles from that template:
https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS197190