Symptoms:
When submitting an uninstall request, users are not being removed from AD Groups.
Diagnosis:
This is a current limitation with App Broker. When uninstalling, users will not be removed from AD Groups when submitting an uninstall request.
Solution:
To work around this Limitation, a command action can be invoked in the On Success Uninstall event for the Catalog Item. The following steps can be used to implement this:
- Create a new text file named removeFromGroup.ps1.
- Edit removeFromGroup.ps1 and add the following to the script:
param(
[string]$groupName, #specify a custom variable containing the group name
[string]$userName #pass the variable ##UserName##
)
Remove-ADGroupMember -identity $groupName -Members $userName -Confirm:$false
- Under Site Management -> Commands and Actions -> Script Commands, create a new command named removeFromGroup. Under Command File, select the removeFromGroup.ps1 created previously.
- For the command arguments, specify the following:
##Custom_GroupName## ##UserName##
Note that ##Custom_GroupName## is a custom variable that will be created in the next step. The variable ##UserName## resolves to the target user name. The following screen capture illustrates the Command settings:
- To create the custom variable, open the catalog item, and go to the Custom Variables tab. Select "Add New Variable, and set the variable name to "GroupName". Set the value to the name of the AD Group where the user will be removed. The following screen capture shows the custom variable configuration:
- Next, go to the Actions tab of the catalog item, and select the "On Success Uninstall" event. Under Add an action, select Command Execution for "Select a service", and "RemoveFromGroup" action for "Select a method or command". Finally, select the Add button to save the action. The following illustrates:
After following these steps, the target user should be removed from the specified group name when after the uninstallation successfully com.
Related Articles
Syncing a Users AD GUID into the App Broker DB 6Number of Views Fix Intune sync failure when ConfigMgr sync is enabled in App Broker 2025 R1 8Number of Views App Broker site down. Users unable to access App Broker site. 8Number of Views Remote User counts may be inflated when user acounts are member of built-in AD groups in multi-domain environments 4Number of Views A list of commonly referenced App Broker database tables 9Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago