-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TfsUserMappingTool: fix loading users from TFS connected to Active Di…
…rectory (#2522) `TfsUserMappingTool` is not working correctly in our scenario, which is: - As our source server, we have on-premise TFS 2018 connected to on-premise Active Directory. - As our target server, we have Azure DevOps connected to Azure Entra ID (formerly Azure Active Directory). `TfsUserMappingTool` is not working at all, because **it will not load any user** from our on-premise TFS server. The problem is this part: ```cs var people = SIDS.Members.ToList().Where(x => x.Contains("\\")).Select(x => x); ``` It processes only users, whose SID contains `\` character. But none of our users in TFS contains this. All data in `SIDS.Members` are SIDs of some kind of identity and we need to process them all. So the new logic is this: - All SIDs are processed, so identity for every one of them is retrieved from the server. - Identity type is checked if we can use this identity. Allowed identity types for mapping are `WindowsUser` and `UnknownIdentityType`. - All identities in Entra ID have type `UnknownIdentityType`. This works as expected and loads correct user lists from TFS and DevOps.
- Loading branch information
Showing
3 changed files
with
48 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters