Active Roles User Provisioning

Dear All,

1. How does ARS provision users from ARS to AD. I mean what scripts does it run or what method does it run when a user click on submit button for user creation.

2. How does ARS decide, in a domain which AD should it provision the objects (users and groups).

Thanks,

Biswajeet