
CarstenW.33950 (SFLX) asked a question.
Hello there,
I have a custom profile field that mirrors the okta status (I use a lot of group rules and only want active users in there, but cannot filter based on status in there).
Now, to mirror user states into that field, I use an Okta Workflow.
Unfortunately, if a user account gets deactivated, I can no longer write into that field. I'm solving this by activating the account, update the profile field and then deactivating the account again.
How would you deal with that situation?

@CarstenW.33950 (SFLX) -- This scenario is a limitation in Okta. The only changes allowed to a deactivated/deprovisioned users account is "Activating" them and removing them from groups.
Depending on the criticality of this use case && how users are becoming deactivated there are some options available. If Okta is your source of truth and the origination of the deactivation you could just change the process from "Manually Deactivating" them in the UI and instead deactivate them leveraging a Delegated Workflow. This would allow you to perform the required actions prior to the deactivation API call occurring.
Something else could be "adding them to a deactivated users group". Have this trigger a Workflow and perform the process. If they are removed from the group you could trigger a flow to reactivate them.
However, if this deactivate is being push in by another source via provisioning there really isn't much that can be done.