The question is simple, how to reset all permissions to defaults on Team Foundation Server 2013? The second part: how to make sure I won't be locked out of TFS when doing the reset?
The best option would be to reset all the permissions for the whole TFS server, but I'll accept resetting the permissions on individual team project collections as well.