We in our Organisation, use AD groups to control the Access Level.
From TFS 2017 Upgrade, TFS Access Level is not accepting the AD groups with (&) ampersand which used to be allowed till the previous release. We get the error post upgrade and when we tried to add a new group to the Access Level.
TF10158: The user or group name XXXXXXXX contains unsupported characters, is empty, or too long.
Added a solution by Peaky Yuter · Mar 21 at 06:46 PM
We have already tried example strings like the one that you showed, but were unable to reproduce the error you're describing. To continue to debug this, we need your exact group name and the TFS complete version number. Thank you so much again!
Useful to allow tasks to be 'unassigned'
Cannot add TFS server group to Access Level
unable to see build step logs, tfs 2017
Package Manager and Extensions