The following VBScript samples demonstrate how to handle Active Roles and Active Directory permissions programmatically.