Get site owners of a site collection


Badge +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

Badge +17

@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.

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

Reply