We recently migrated from version 8.2 to 8.4P2. As part of this upgrade, we deployed the new version on different Windows servers, which required migrating data from the legacy environment to the new one.
After go-live, we noticed that some users were re-assigned business roles that had been revoked years ago in the legacy system. This happened due to incorrect or stale data in the legacy environment. We identified the affected users and performed a cleanup using a batch request.
However, during cleanup, the batch request not only removed the incorrect business roles but also deleted the access associated with those roles. Some of this access was not originally part of the business roles—it was obtained through separate IT Roles.
Now, we’re left with users who still have the business roles but no corresponding IT roles or entitlements.
Could anyone suggest the best approach or recommended method to clean up these roles
If you want to cleanup only the roles from IIQ but not the access associated with it. You can try removing the roles using provisioner api and use the setLocalUpdate(true) in the method.
This will ensure to remove the role only from IIQ not the access associated with the role.
Yes, I have provided a sample code where I have used provisioner API and set Local update. The above code is for entitlements. You can make the changes and do it for business roles.