It’s a bit difficult to explain the original requirement, but I will try.
At one customer, when a user needed to be migrated, we received the information from the HR system. The migration itself had to be performed manually rather than through NIM.
The challenge was that, as soon as the HR data indicated that the user no longer required the account in a first domain, NIM would apply the current rules and deprovision the account. In reality, the account still needed to exist until the manual migration to a second domain was completed.
In this customer’s environment, NIM only had read access to the second domain, so it could not manage the migration process itself.
My goal was therefore to access the assigned resource types in a C# expression and use that information to prevent the account from being deprovisioned while it was still assigned and awaiting migration.
The expression would be used in a computed property that served as a dimension for the resource type assignment.
This is probably overengineered, but I didn’t see any other option at the time.