Use the eeadmin.deassignUser to remove a user or a user group from a system or branch in ePO - On-prem.
eeadmin.deassignUser command
Command
Syntax
Description
eeadmin.deassignUser
eeadmin.deassignUsersystemNode=<>
nodeId=<>
dn=<>
dnType=<>
Specify systemNode='True' to indicate that nodeId=computer Id refers to an ePO - On-prem System, or systemNode='False' to indicate that nodeId=branch Id refers to an ePO - On-prem Branch.
Pass the DN of the user or user group to remove accordingly.
Specify whether the DN refers to a User, User Group, or Organizational Unit (OU) (1=User, 2=User Group,3=OU). This is required to make sure that you do not have to run an overloaded LDAP query to process this command.