Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 6944

C# help with hiding terminated users

$
0
0

I am trying to put in code to hide terminated users from the GAL using our AD MA

I have the following code:

case "msExchHideFromAddressLists":
                if (mventry["employeeStatus"].IsPresent && mventry["employeeStatus"].Value.ToLower() == "terminated" || mventry["cccEmployeeStatus"].IsPresent&& mventry["cccEmployeeStatus"].Value.ToLower() == "terminated")
                {
                    csentry["msExchHideFromAddressLists"].BooleanValue = true;
                }
                break;

It keeps giving an error that the attribute is read only, or it does nothing at all..

Any assistance would be appreciated thanks


Russell Lema


Viewing all articles
Browse latest Browse all 6944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>