I'm trying to update the Owner of a SP Group. This is what I've tried:
import pnp from "pnp";
let newgroup = {};
pnp.sp.web.siteGroups.getByName("BA_Actuarial").get().then(function(g) {
newgroup = g
})
let group = pnp.sp.web.siteGroups.getByName("BA_SargonTest").expand("owner")
group.get().then(data => {
console.log(data, newgroup)
group.update({
Owner: newgroup
})
})