This method is not Public API that is why it is not documented. You should add new roles in the Designer using the role editor.
However, sometimes dynamic roles are needed and useful. For that you can use the
createChildRolemethod on your own risk. Since it is not Public API we may change/remove it in future version without any notice.
Reto Weiss, ivyTeam Support