Quantcast
Viewing all articles
Browse latest Browse all 6944

ReplaceString function to remove multiple special characters from sAMAccountName

I'm provisioning groups in AD an naming them according to DepartmentName in HR. off course HR uses & % \ / , and other fun stuff, so i need to do some regex before exporting DepartmentName to sAMAccountName. I'm doing the Regex on Import Sync. rule.

CustomExpression: ReplaceString(NAVN,"/","") works fine, but this is only fixing the /'s what i need is something that can do:

ReplaceString(NAVN,"/" or "\" or "," or "&","") but this apparently is not valid.

Does any of you have a CustomExpression to do this "simple" action?


/Frederik Leed


Viewing all articles
Browse latest Browse all 6944

Trending Articles



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