Members > Reassign work and remove member
Get reassignment options
Seeing what a member would hand over
Section titled “Seeing what a member would hand over”GET /organizations/{org_id}/users/{user_id}/reassignment-information/granular-options
This lists the work a member holds in your Tallyfy organization, so you can decide who takes over what before you remove them. It doesn’t change anything.
You’ll need admin permissions. There’s no screen for this in Tallyfy, so you call it through the API.
To act on what it returns, use reassign work and remove member. It takes the item IDs from this answer, so you can send each piece of work to a different person or take it away.
Request
Section titled “Request”Replace {org_id} with your organization ID. Replace {user_id} with the member’s numeric ID.
Headers
Section titled “Headers”Authorization: Bearer {your_access_token}Accept: application/jsonX-Tallyfy-Client: APIClient
You don’t need a request body.
Code samples
Section titled “Code samples”const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';const orgId = 'YOUR_ORGANIZATION_ID';const userId = 12345;
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/users/${userId}/reassignment-information/granular-options`;
fetch(apiUrl, { method: 'GET', headers: { 'Authorization': `Bearer ${accessToken}`, 'Accept': 'application/json', 'X-Tallyfy-Client': 'APIClient' }}).then(response => { if (!response.ok) { return response.text().then(body => { throw new Error(`${response.status} ${body}`); }); } return response.json();}).then(result => { const options = result.data.granular_options; console.log('Open tasks you can reassign or remove:', options.tasks.active_count); console.log('Tasks that stay with the member:', options.tasks.preserved_count); console.log(JSON.stringify(options, null, 2));}).catch(error => { console.error(`Error getting reassignment options for member ${userId}:`, error.message);});import requestsimport jsonimport os
access_token = os.environ.get('TALLYFY_ACCESS_TOKEN', 'YOUR_PERSONAL_ACCESS_TOKEN')org_id = os.environ.get('TALLYFY_ORG_ID', 'YOUR_ORGANIZATION_ID')user_id = 12345
api_url = f'https://go.tallyfy.com/api/organizations/{org_id}/users/{user_id}/reassignment-information/granular-options'
headers = { 'Authorization': f'Bearer {access_token}', 'Accept': 'application/json', 'X-Tallyfy-Client': 'APIClient'}
try: response = requests.get(api_url, headers=headers) response.raise_for_status() options = response.json()['data']['granular_options'] print(f"Open tasks you can reassign or remove: {options['tasks']['active_count']}") print(f"Tasks that stay with the member: {options['tasks']['preserved_count']}") print(json.dumps(options, indent=4))except requests.exceptions.RequestException as e: print(f"Error getting reassignment options for member {user_id}: {e}") if hasattr(e, 'response') and e.response is not None: print(f"Response: {e.response.text}")import java.net.URI;import java.net.http.HttpClient;import java.net.http.HttpRequest;import java.net.http.HttpResponse;import java.io.IOException;
public class GetReassignmentOptions { public static void main(String[] args) { String accessToken = System.getenv().getOrDefault("TALLYFY_ACCESS_TOKEN", "YOUR_PERSONAL_ACCESS_TOKEN"); String orgId = System.getenv().getOrDefault("TALLYFY_ORG_ID", "YOUR_ORGANIZATION_ID"); int userId = 12345; String apiUrl = String.format( "https://go.tallyfy.com/api/organizations/%s/users/%d/reassignment-information/granular-options", orgId, userId);
HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest.newBuilder() .uri(URI.create(apiUrl)) .header("Authorization", "Bearer " + accessToken) .header("Accept", "application/json") .header("X-Tallyfy-Client", "APIClient") .GET() .build();
try { HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString()); if (response.statusCode() == 200) { System.out.println("Reassignment options: " + response.body()); } else { System.err.println("Failed: " + response.statusCode() + " - " + response.body()); } } catch (IOException | InterruptedException e) { System.err.println("Request failed: " + e.getMessage()); Thread.currentThread().interrupt(); } }}package main
import ( "encoding/json" "fmt" "io" "net/http" "os" "time")
func main() { accessToken := os.Getenv("TALLYFY_ACCESS_TOKEN") if accessToken == "" { accessToken = "YOUR_PERSONAL_ACCESS_TOKEN" } orgId := os.Getenv("TALLYFY_ORG_ID") if orgId == "" { orgId = "YOUR_ORGANIZATION_ID" } userId := 12345
apiUrl := fmt.Sprintf("https://go.tallyfy.com/api/organizations/%s/users/%d/reassignment-information/granular-options", orgId, userId)
client := &http.Client{Timeout: 15 * time.Second} req, err := http.NewRequest(http.MethodGet, apiUrl, nil) if err != nil { fmt.Printf("Error creating request: %v\n", err) return }
req.Header.Set("Authorization", "Bearer "+accessToken) req.Header.Set("Accept", "application/json") req.Header.Set("X-Tallyfy-Client", "APIClient")
resp, err := client.Do(req) if err != nil { fmt.Printf("Error executing request: %v\n", err) return } defer resp.Body.Close()
body, err := io.ReadAll(resp.Body) if err != nil { fmt.Printf("Error reading response: %v\n", err) return }
if resp.StatusCode != http.StatusOK { fmt.Printf("Failed: %d - %s\n", resp.StatusCode, string(body)) return }
var result map[string]interface{} if err := json.Unmarshal(body, &result); err != nil { fmt.Printf("Error parsing response: %v\n", err) return } pretty, _ := json.MarshalIndent(result["data"], "", " ") fmt.Println(string(pretty))}#include <iostream>#include <string>#include <cpprest/http_client.h>
using namespace web;using namespace web::http;using namespace web::http::client;
pplx::task<void> GetReassignmentOptions(int userId){ utility::string_t accessToken = U("YOUR_PERSONAL_ACCESS_TOKEN"); utility::string_t orgId = U("YOUR_ORGANIZATION_ID");
uri_builder builder(U("https://go.tallyfy.com/api/organizations/")); builder.append_path(orgId); builder.append_path(U("users")); builder.append_path(utility::conversions::to_string_t(std::to_string(userId))); builder.append_path(U("reassignment-information/granular-options"));
http_client client(builder.to_string()); http_request request(methods::GET); request.headers().add(U("Authorization"), U("Bearer ") + accessToken); request.headers().add(U("Accept"), U("application/json")); request.headers().add(U("X-Tallyfy-Client"), U("APIClient"));
return client.request(request).then([](http_response response) { return response.extract_string().then([status = response.status_code()](utility::string_t body) { if (status == status_codes::OK) { ucout << U("Reassignment options:\n") << body << std::endl; } else { ucerr << U("Failed: ") << status << U(" - ") << body << std::endl; } }); });}
int main() { try { GetReassignmentOptions(12345).wait(); } catch (const std::exception &e) { std::cerr << "Error: " << e.what() << std::endl; } return 0;}// Requires C++ REST SDK (Casablanca)using System;using System.Net.Http;using System.Net.Http.Headers;using System.Text.Json;using System.Threading.Tasks;
public class TallyfyReassignmentOptions{ private static readonly HttpClient client = new HttpClient();
public static async Task GetReassignmentOptionsAsync(int userId) { var accessToken = Environment.GetEnvironmentVariable("TALLYFY_ACCESS_TOKEN") ?? "YOUR_PERSONAL_ACCESS_TOKEN"; var orgId = Environment.GetEnvironmentVariable("TALLYFY_ORG_ID") ?? "YOUR_ORGANIZATION_ID"; var apiUrl = $"https://go.tallyfy.com/api/organizations/{orgId}/users/{userId}/reassignment-information/granular-options";
using var request = new HttpRequestMessage(HttpMethod.Get, apiUrl); request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", accessToken); request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); request.Headers.Add("X-Tallyfy-Client", "APIClient");
var response = await client.SendAsync(request); string responseBody = await response.Content.ReadAsStringAsync();
if (response.IsSuccessStatusCode) { using var doc = JsonDocument.Parse(responseBody); var options = doc.RootElement.GetProperty("data").GetProperty("granular_options"); Console.WriteLine(JsonSerializer.Serialize(options, new JsonSerializerOptions { WriteIndented = true })); } else { Console.WriteLine($"Failed: {response.StatusCode} - {responseBody}"); } }
// static async Task Main(string[] args) => await GetReassignmentOptionsAsync(12345);}Response
Section titled “Response”You’ll get 200 OK. Everything comes back in a data object. Its first five keys are a short preview of the member’s work. granular_options holds the full counts and the IDs you can act on.
The preview keys:
templates- Up to 10 of their templates, as pairs of template ID and title. It’s an empty list,[], when they have none.steps- Up to 10 template steps they’re assigned to, each withid,alias,titleandtemplate_id.processes- Up to 10 of their processes, each withid,template_idandname.process_tasks- Up to 15 of their process tasks that aren’t completed, grouped by process ID. Each hasid,run_id,run_name,template_name,nameanddeadline.one_off_tasks- Up to 10 of their one-off tasks that aren’t completed, each withid,nameanddeadline.
Under granular_options there’s one entry per type:
templates.count- How many templates they created, own or are a member of. Archived templates aren’t counted, and they keep the member as their creator and owner.templates.ownership_falls_back_to_default- Alwaystrue. A template always needs a creator and an owner, so if you remove a template instead of reassigning it, those roles still go to your default member. That’s the person who takes whatever you don’t send somewhere else.steps.count- How many template steps they’re assigned to.processes.count- How many processes they started, own or are a member of, not counting archived ones.processes.granular_configurableandprocesses.reassigned_to_default- Alwaysfalseandtrue. You can’t split processes up. All of them go to your default member, archived ones included.tasks.active_count- How many open tasks you can reassign or remove. These are the tasks they’re assigned to, directly or through a group, or created, that aren’t completed, archived or in an archived process.tasks.preserved_count- How many tasks stay with the member. It counts the completed tasks they’re assigned to directly, and the completed tasks, archived tasks and tasks in archived processes they created. Archived tasks and tasks in archived processes they were only assigned to also stay with them, but aren’t counted.tasks.preserves_history- Alwaystrue. Completed tasks, archived tasks and tasks in archived processes keep the member, so your records still show who did that work.can_removeandcan_reassignon templates, steps and tasks - Alwaystrue.
Templates, steps and tasks each have an items list. It holds the IDs you can name, one by one, when you reassign work and remove the member. Templates have id and title. Steps have id, alias, title and template_id. Tasks have id, name, status, run_id and run_name, and run_id and run_name are null for a one-off task. Completed tasks, archived tasks and tasks in archived processes are never in the list.
Each items list stops at 200 entries. When there are more, items_truncated is true, but the counts are still complete. For the items past 200, give a rule for their whole type instead.
Success response example
Section titled “Success response example”{ "data": { "templates": { "a1b2c3d4e5f60718293a4b5c6d7e8f90": "Client onboarding" }, "steps": [ { "id": "0f1e2d3c4b5a69788796a5b4c3d2e1f0", "alias": "review-the-contract-104233", "title": "Review the contract", "template_id": "a1b2c3d4e5f60718293a4b5c6d7e8f90" } ], "processes": [ { "id": "11223344556677889900aabbccddeeff", "template_id": "5e6f708192a3b4c5d6e7f8091a2b3c4d", "name": "Client onboarding - Example Co" } ], "process_tasks": { "11223344556677889900aabbccddeeff": [ { "id": "9f8e7d6c5b4a39281706f5e4d3c2b1a0", "run_id": "11223344556677889900aabbccddeeff", "run_name": "Client onboarding - Example Co", "template_name": "Client onboarding", "name": "Send the welcome pack", "deadline": "2026-12-15T17:00:00Z" } ] }, "one_off_tasks": [ { "id": "0a1b2c3d4e5f60718293a4b5c6d7e8f9", "name": "Renew the software license", "deadline": "2026-12-20T17:00:00Z" } ], "granular_options": { "templates": { "count": 1, "can_remove": true, "can_reassign": true, "ownership_falls_back_to_default": true, "items": [ { "id": "a1b2c3d4e5f60718293a4b5c6d7e8f90", "title": "Client onboarding" } ], "items_truncated": false }, "steps": { "count": 1, "can_remove": true, "can_reassign": true, "items": [ { "id": "0f1e2d3c4b5a69788796a5b4c3d2e1f0", "alias": "review-the-contract-104233", "title": "Review the contract", "template_id": "a1b2c3d4e5f60718293a4b5c6d7e8f90" } ], "items_truncated": false }, "processes": { "count": 1, "granular_configurable": false, "reassigned_to_default": true }, "tasks": { "active_count": 2, "preserved_count": 14, "can_remove": true, "can_reassign": true, "preserves_history": true, "items": [ { "id": "9f8e7d6c5b4a39281706f5e4d3c2b1a0", "name": "Send the welcome pack", "status": "not-started", "run_id": "11223344556677889900aabbccddeeff", "run_name": "Client onboarding - Example Co" }, { "id": "0a1b2c3d4e5f60718293a4b5c6d7e8f9", "name": "Renew the software license", "status": "in-progress", "run_id": null, "run_name": null } ], "items_truncated": false } } }}Error responses
Section titled “Error responses”The 403 body is plain text. The 404 body is JSON, with the text in message.
| Status | Error message | What to do |
|---|---|---|
| 403 | Forbidden. | Only an administrator can call this. Use an administrator’s access token. |
| 404 | Resource not found | The user ID isn’t a member of this organization. Check the ID. |
Related articles
Section titled “Related articles”Org Settings > Member deletion