Hello to everyone!
In my ActiveDirectory I have about 100k users.
Each of the users has a “Description” field that looks similar to an example below
"The Paramount Company FullName \ Paramount Company \ The Department One FullName \ Dep1 \ Sales Department of the Department One \ Sales Department \ South Division of the Sales Department \ South Division"
and so forth.
This looong (over 250 characters) string is to be somehow parsed and shortened into just 32 characters and kept to a unique User’s ID in a csv file
The simplest idea would be to get just the last value, like Description.split().[-1] (powershell notation)
But that will not guarantee uniqueness, obviously.
Could someone recommend an approach that would at least rise a probability of the resulting string (Dep32) to be unique?