How can I change the group owner of a group by a sharepoint workflow using the REST api?

I am creating the group by a rest call in the workflow. This works perfectly but the owner is set to the user running the workflow.

What I have tried so far:

  • Adding an "Owner" parameter with a paylod of {"Id":"15"}. The workflow runs with no errors but the owner field is not updated
  • Hitting the /_api/Web/SiteGroups/GetById([GroupId])/Owner endpoint but it seems it doesn't exist

Judging by this article the Owner parameter should be writeable, but it does not seem to work.

BTW I'm working on SharePoint Online.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.