Chef - fetching policy and group via API

I’d have to check later but I’m wondering if there is a way to do it via automate infra-view for chef-server. That’d also be interacting with chef-server api.