Skip to main content
Nintex Community Menu Bar

Get site owners of a site collection

  • May 16, 2019
  • 2 replies
  • 102 views

Forum|alt.badge.img+3

Hi All,

Is there a way to get the site owners of a site collection using workflow? What i'm trying to do here is create a form where the user can specify the site name or URL and it will retrieve the site owners.

 

Thanks

2 replies

Forum|alt.badge.img+17
  • May 16, 2019

@Nerrd You could use the call web service action to call the endpoint via a REST call and retrieve the site owner that way. I am not sure of any other way to do that directly. 

 

Ideally, you would have the site list setup on the form (drop down preferred) so they don't screw it up. Then take the value into a variable, use the variable with the rest call, and return the value to them via an email or update on the list. 

 

Here is the REST API - GET http://<sitecollection>/<site>/_api/site/owner

https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-visio/jj246231%28v%3doffice.15%29

 

Hope that helps.


  • March 17, 2020

I'm getting "An error was encountered during WSDL processing." Any ideas?