Remove orphan identities in TFS 2010

后端 未结 3 1556
挽巷
挽巷 2021-01-21 22:40

I am in the process of moving a TFS 2010 installation from one machine to another.

I found that is possible remap identities using TFSConfig Identities /change

3条回答
  •  广开言路
    2021-01-21 23:01

    Unfortunately, as is typical with many Microsoft products, the application is lacking many useful features (like a function to delete identities). You can do what I did and manually remove entries from the TFS_Configuration database in the table tbl_security_identity_cache and it will clean them up.

    You will have to temporarily disable the foreign key constraints on the table or else you can't delete from it.

    I used a statement like:

    DELETE FROM tbl_security_identity_cache
    WHERE 'display_name' IN
    (
        'useless crummy identity 1',
        'useless messy identity 2'
    )
    

    and so on

    When I searched for how to do this nobody had posted it so here you go.

提交回复
热议问题