transforms output of get /roles