1

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.

3
  • Did you ever found a solution for it? Commented Nov 11, 2019 at 15:14
  • 1
    Not really - I had to make all members able to edit the group membership. And running the workflow with elevated app permissions would make the app the owner and not the user running the workflow.
    – Morten K
    Commented Nov 13, 2019 at 9:43
  • I managed to have a workaround by using the client.svc/ProcessQuery approach. Check this thread. Commented Nov 13, 2019 at 10:21

1 Answer 1

1

It seems that it isn't possible.

For those who have the same problem please vote the feature in user voice:

https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/11503626-add-the-possibility-to-set-the-owner-when-creating

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.