Implement get{,e}{u,g}id