List Users by workflowId
curl --request GET \
--url https://production.runalloy.com/workflows/{workflowId}/users \
--header 'Authorization: <authorization>' \
--header 'x-api-version: <x-api-version>'import requests
url = "https://production.runalloy.com/workflows/{workflowId}/users"
headers = {
"Authorization": "<authorization>",
"x-api-version": "<x-api-version>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<authorization>', 'x-api-version': '<x-api-version>'}
};
fetch('https://production.runalloy.com/workflows/{workflowId}/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production.runalloy.com/workflows/{workflowId}/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"x-api-version: <x-api-version>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://production.runalloy.com/workflows/{workflowId}/users"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("x-api-version", "<x-api-version>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://production.runalloy.com/workflows/{workflowId}/users")
.header("Authorization", "<authorization>")
.header("x-api-version", "<x-api-version>")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.runalloy.com/workflows/{workflowId}/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["x-api-version"] = '<x-api-version>'
response = http.request(request)
puts response.read_body{
"data": [
{
"username": "alexmcvar@runalloy.com",
"fullName": "Alex McVarish",
"userId": "6398f116aaab31dbb69df94d",
"workflowActive": true,
"installedAt": "2023-11-03T18:02:28.296Z"
},
{
"username": "brandonl@runalloy.com",
"fullName": "Brandon Looker",
"userId": "6398f895dk5b31dbh69df7d7",
"workflowActive": true,
"installedVersion": 2,
"installedAt": "2023-11-03T18:02:28.296Z"
},
{
"username": "abdullah+embedded3@runalloy.com",
"fullName": "Abdullah Wali",
"userId": "63fec7df57e0a6da84257316",
"workflowActive": true,
"installedAt": "2023-11-03T18:02:28.296Z"
},
{
"username": "devanshMehta@runalloy.com",
"fullName": "Devansh Mehta",
"userId": "63feca0157e0a6da8425731b",
"workflowActive": false,
"installedVersion": 2,
"installedAt": "2023-11-03T18:02:28.296Z"
}
]
}"{}"Users
List Users by workflowId
GET
/
workflows
/
{workflowId}
/
users
List Users by workflowId
curl --request GET \
--url https://production.runalloy.com/workflows/{workflowId}/users \
--header 'Authorization: <authorization>' \
--header 'x-api-version: <x-api-version>'import requests
url = "https://production.runalloy.com/workflows/{workflowId}/users"
headers = {
"Authorization": "<authorization>",
"x-api-version": "<x-api-version>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<authorization>', 'x-api-version': '<x-api-version>'}
};
fetch('https://production.runalloy.com/workflows/{workflowId}/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production.runalloy.com/workflows/{workflowId}/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"x-api-version: <x-api-version>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://production.runalloy.com/workflows/{workflowId}/users"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("x-api-version", "<x-api-version>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://production.runalloy.com/workflows/{workflowId}/users")
.header("Authorization", "<authorization>")
.header("x-api-version", "<x-api-version>")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.runalloy.com/workflows/{workflowId}/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["x-api-version"] = '<x-api-version>'
response = http.request(request)
puts response.read_body{
"data": [
{
"username": "alexmcvar@runalloy.com",
"fullName": "Alex McVarish",
"userId": "6398f116aaab31dbb69df94d",
"workflowActive": true,
"installedAt": "2023-11-03T18:02:28.296Z"
},
{
"username": "brandonl@runalloy.com",
"fullName": "Brandon Looker",
"userId": "6398f895dk5b31dbh69df7d7",
"workflowActive": true,
"installedVersion": 2,
"installedAt": "2023-11-03T18:02:28.296Z"
},
{
"username": "abdullah+embedded3@runalloy.com",
"fullName": "Abdullah Wali",
"userId": "63fec7df57e0a6da84257316",
"workflowActive": true,
"installedAt": "2023-11-03T18:02:28.296Z"
},
{
"username": "devanshMehta@runalloy.com",
"fullName": "Devansh Mehta",
"userId": "63feca0157e0a6da8425731b",
"workflowActive": false,
"installedVersion": 2,
"installedAt": "2023-11-03T18:02:28.296Z"
}
]
}"{}"⌘I

