Convert permissions to yaml file.