Any Active Roles Web Interface form can be modified so that requests sent from that form contain a custom Active Roles Control.
- In the Active Roles Web Interface, as an Active Roles Admin, find the desired form
- Click on Customize in the top right-hand corner
- Click on Properties in the top right-hand corner
- Click on the Extended Control tab
- Choose a name for this custom Active Roles Control. This can be anything, such as fromWeb
- Set the Control Value to TRUE and click the Add button and then click Save
- Expand Customization on the left and click Reload to post the changes to the Web Interface configuration.
After this customization is performed, leverage a script module similar to the one below in order to distinguish between updates from each of these Active Roles clients:
function onPostModify($Request)
{
if ($Request.class -eq "user")
{
#Load the current session, only necessary for Active Roles Console detection
$Session = $Security.Sessions.Current
if ($Session.ClientVersion -like "MMC*")
{
"From the Active Roles Console" | Out-File -FilePath C:\Temp\clientTraffic.txt -Append
}
try
{
$FromARSS = $Request.GetInControl("ActiveRolesSyncService")#Builtin control, no modification necessary
if ($FromARSS)#Testing to see if it has a value. The specific value will be the the full version of the Active Roles Synchronization Service as shown in Active Roles Synchronization Service Console.
{
"From the Active Roles Synchronization Service" | Out-File -FilePath C:\Temp\clientTraffic.txt -Append
}
}
catch
{
#alternate code if desired
}
try
{
$FromWeb = $Request.GetInControl("fromWeb")#Custom control, modification in the Active Roles Web Interface is necessary
if ($FromWeb)
{
"From the Active Roles Web Interface" | Out-File -FilePath C:\Temp\clientTraffic.txt -Append
}
}
catch
{
#alternate code if desired
}
}
}