question

MarcovanWieren-2336 avatar image
MarcovanWieren-2336 asked ·

Azure AD User provisioning not sending update with active:False when user assignment is removed

I have developed a custom Azure AD User provisioning endpoint as described here https://docs.microsoft.com/en-us/azure/active-directory/app-provisioning/use-scim-to-provision-users-and-groups and everything is working fine when I assign a user and update that user in Azure AD. However, whenever I remove the user assignment, Azure AD sends a PatchOp with a number of Add ops but at no point to I receive an Op that tells me that "active" is false. I have tried to map active to Not([IsSoftDeleted]) as well as to the default Switch([IsSoftDeleted], "", "True", "False", "False", "True") but what I try, it doesn't seem to be working as (I) expected. Any help would be appreciated!

azure-ad-user-provisioning
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AndersPrstegaard-8649 avatar image
AndersPrstegaard-8649 answered ·

Searching for a solution to a similar struggle brought me here.
I hope for my answer to turn up here..

[EDIT] Looking here:
https://docs.microsoft.com/en-us/azure/active-directory/app-provisioning/functions-for-customizing-application-data#switch

Might suggest that the default value in your switch (now "") should be "False"?

Giving you: Switch([IsSoftDeleted],"False" , "key1", "value1", "key2", "value2"..)
This solved my issue!

-Anders

Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.