People tools
People covers the members of an account and the account roles they hold. An assistant can list and read members, add a member without sending an invitation, change a member’s details, billable roles, teams and employment start, set a work schedule and a cost rate, and read and change account roles (the permission sets of Settings, Permissions).
Drum offers People only where it offers Setup: on accounts where it has turned on account setup through the API. It is for setting up an account, usually during onboarding. The toolset also has search_records, and delete_record and restore_record with the kind account_role.
Members
list_membersgives one compact row per member, up to 50 a page: the account role ids (the page names each role once inaccount_roles), the employment start, a summary of the current work schedule, the active cost rate and any setup warnings. Use it to plan the setup of many members with one read.account_role_idlists the holders of one role, andinclude_archivedadds archived members. Drum staff memberships are never listed.get_memberreads one member in full. The member document haswarnings:schedule_before_employmentandtime_before_employmentwhen the member’s first work schedule or first time entry is before their employment start, which staff reports count from. The work schedule needsupdate_account_users, and the cost rates needresource_financials. Without them those keys are left out.create_memberadds a member with a new Drum login, and sends no email. The login has no access until an admin sends a password reset from the member page in Drum, so the person cannot sign in on the web or throughPOST /api/v1/authuntil then. An email that already has a Drum login is refused withemail_unavailable. A new member counts toward the account’s subscription, so the tool reaches outside Drum. If the seat count update fails, the result has the warningsubscription_quantity_pending.update_memberchanges only what you send.employment_start_datecorrects the start of a member’s only employment period. A member who was rehired answersemployment_date_unsupported; change their periods in Drum.save_member_work_schedulesets a schedule from today in the member’s time zone, as the work schedules screen does. It can also change a member’s only schedule from its first day, or start it earlier. Either of those moves a later employment start back to the schedule start. A day with more hours than its window gives the warninghours_exceed_window.save_member_cost_rateadds a new active cost rate. Unlike the othersave_tools it takes no id: it adds a version, because a time entry keeps the rate it was costed at. A rate equal to the active rate adds nothing and answersunchanged: true.- The four member writes take
response_format.detailed(the default) returns the member document, andconcisereturns the id, the name and what the call saved. A write by a role that cannot read the member returns onlyid,nameand what changed. - A Drum staff membership, a member of another account, an archived member (except for
update_memberandsave_member_cost_rate) and a member you can neither read nor change all answermember_not_found.
Archiving and restoring a member, invitations and password resets are done in Drum only.
Account roles
get_account_rolereads a role: every permission flag, grouped as Settings, Permissions groups them,sensitive_permissions,can_change_sensitive,permission_pairs(flags that work only together), up to 200 members andrevision. With noidit gives a new role with every flag at its default, so an assistant can learn the flag names before it creates one.response_format: concisegivesgranted, the flags that are on, in place of the full lists.save_account_rolecreates a role (noid) or changes one.permissionsis a flat object of flags,{"approve_timesheets": true}. A flag left out does not change, andreplace_permissions: trueturns off every flag thatpermissionsleaves out, so one call sets the whole role.add_member_idsandremove_member_idstake up to 200 ids each. To move a member, add them to the new role and remove them from the old one. Sendrevisionback asexpected_revision, and a role changed since you read it answersconflictwithstale_state. The result haschanged_permissions,{flag: {from, to}}for each flag the call changed.- Only an account admin changes a sensitive flag (
manage_permissions,super_finance,create_finance, the fourapi_*flags,connect_ai_agentsandmanage_webhooks), or adds or removes members on a role that grants one. Anyone else getsnot_authorizedwithescalation_refused. delete_recordwith kindaccount_rolearchives a role, andrestore_recordbrings it back. Members keep an archived role, without its permissions, until it is restored. The archive warnsrole_has_members,role_required_by_project_rolesandrole_used_by_approvals. Find an archived role withsearch_recordskindaccount_roleand statusdeleted.- Every change to a role or its members is recorded in Drum with who made it.
The REST API has the same account role operation at /api/v1/account_roles.
Tools
Each tool below shows what the server sends: its description (written for the AI), its kind, the permissions it needs, the fields it returns, and its inputs. An input in a.b or a[].b form is a field inside an object or a list. For the shared rules on results, pages, money and errors, see Results, errors and limits.
list_members
List members with their account role ids (account_roles names them), employment start, a summary of the current work schedule and the active cost rate, one page. Use it to plan setup writes, and get_member for the days, the history and the roles of one member. warnings has the codes of setup that reports read wrongly (schedule_before_employment, time_before_employment): get_member explains them. The schedule and the cost rate are left out when the user’s role does not permit them. has_more is true when more members exist, and offset reads the next page.
| Title | List members |
| Toolsets | People |
| Kind | Read only, Idempotent |
| Needs | api_read, and read_account_users or manage_permissions |
| Returns | count, limit, offset, has_more, members, account_roles |
| Input | Type | Required | Description |
|---|---|---|---|
query |
string | Part of the member’s name. | |
account_role_id |
integer | Only the holders of this role, from search_records with kinds account_role. | |
include_archived |
boolean | Add archived members. Default false. | |
limit |
integer | Default 25, maximum 50. | |
offset |
integer | Default 0. |
get_member
Read one member: account role, billable roles, teams, employment periods, the current work schedule with its history, and the cost rates. The schedule and the cost rates are left out when the user’s role does not permit them. Send the ids it gives, or those of list_members, as the expected values of a change. warnings show setup that reports read wrongly, for example a schedule that starts before the employment. To plan the setup of many members, use list_members.
| Title | Get member |
| Toolsets | People |
| Kind | Read only, Idempotent |
| Needs | api_read, and read_account_users or manage_permissions |
| Returns | member, saved_work_schedule, saved_cost_rate, replayed, unchanged, warnings |
| Input | Type | Required | Description |
|---|---|---|---|
member_id |
integer | Yes | From search_records or list_members. |
create_member
Add a member (a person on staff) with a new Drum login: Drum sends no email, and the person has no access until an admin sends a password reset from the member page in Drum (the person cannot reset it themselves), and never send an invitation to a member made here. An email that already has a Drum login is refused (email_unavailable): add that person in Drum with an invitation. employment_start_date dates the employment, roles, teams and first schedule, and cannot be in the future. Set the cost rate before you import tracked time, because time is costed at the rate when it is saved. Only the names and the email are required, and the other fields have defaults, so do not ask the user for them before you create the member, who counts in the account’s subscription. The result is the member as get_member reads it, so do not read the member again.
| Title | Create member |
| Toolsets | People |
| Kind | Writes data, Reaches outside Drum |
| Needs | api_create and create_account_users. A role other than member needs an admin, account_role_ids need manage_permissions, team_ids need customisation, work_schedule needs update_account_users, and cost_rate needs resource_financials |
| Returns | member, saved_work_schedule, saved_cost_rate, replayed, unchanged, warnings |
| Input | Type | Required | Description |
|---|---|---|---|
first_name |
string | Yes | Of the new login. |
last_name |
string | Yes | Of the new login. |
email |
string | Yes | The sign-in email. It must not have a Drum login. |
role |
string | Default member. admin needs an admin user. One of admin, member, timesheet_only. |
|
account_role_ids |
array of integers | Permission roles, from search_records with kinds account_role. | |
default_resource_type_id |
integer | The default billable role, from search_records with kinds resource_type. Send it when the user names a role. | |
resource_type_ids |
array of integers | Other billable roles. | |
manager_id |
integer | From search_records or list_members. | |
team_ids |
array of integers | From search_records with kinds team. | |
code |
string | The member’s short code. | |
bookable |
boolean | Default true. | |
time_zone |
string | For example Australia/Perth. Default: the account’s. | |
public_holiday_region |
string | The public holidays of the member. Default: the account’s. One of Australia, New Zealand, Canada, Great Britain, United States, NSW (Australia), ACT (Australia), NT (Australia), QLD (Australia), SA (Australia), TAS (Australia), VIC (Australia), WA (Australia). |
|
employment_start_date |
string | First day of work. Default today. | |
work_schedule |
object | Default: the account’s standard week. | |
work_schedule.employment_type |
string | Default full_time_salary. One of full_time_salary, full_time_wage, part_time, casual_contract, contractor. |
|
work_schedule.billable_percentage |
integer | The billable target, 0 to 100. | |
work_schedule.standard_weekly_hours |
number or null | A figure other than the sum of the days is an override, which the days share. null removes the override. | |
work_schedule.days |
object | A day left out keeps its hours and times. billable_hours is 0 to 24, and 0 is a day off with no times. Capacity reads it. start and end are HH:MM in the member’s time zone, the working window only, and null clears one. | |
work_schedule.days.sunday |
object | ||
work_schedule.days.sunday.billable_hours |
number | ||
work_schedule.days.sunday.start |
string or null | ||
work_schedule.days.sunday.end |
string or null | ||
work_schedule.days.monday |
object | ||
work_schedule.days.monday.billable_hours |
number | ||
work_schedule.days.monday.start |
string or null | ||
work_schedule.days.monday.end |
string or null | ||
work_schedule.days.tuesday |
object | ||
work_schedule.days.tuesday.billable_hours |
number | ||
work_schedule.days.tuesday.start |
string or null | ||
work_schedule.days.tuesday.end |
string or null | ||
work_schedule.days.wednesday |
object | ||
work_schedule.days.wednesday.billable_hours |
number | ||
work_schedule.days.wednesday.start |
string or null | ||
work_schedule.days.wednesday.end |
string or null | ||
work_schedule.days.thursday |
object | ||
work_schedule.days.thursday.billable_hours |
number | ||
work_schedule.days.thursday.start |
string or null | ||
work_schedule.days.thursday.end |
string or null | ||
work_schedule.days.friday |
object | ||
work_schedule.days.friday.billable_hours |
number | ||
work_schedule.days.friday.start |
string or null | ||
work_schedule.days.friday.end |
string or null | ||
work_schedule.days.saturday |
object | ||
work_schedule.days.saturday.billable_hours |
number | ||
work_schedule.days.saturday.start |
string or null | ||
work_schedule.days.saturday.end |
string or null | ||
cost_rate |
object | The first cost rate. | |
cost_rate.cost_cents |
integer | Yes | Per hour. |
cost_rate.burden_rate_cents |
integer | Per hour, cost plus overheads. | |
cost_rate.description |
string | A note on the rate. | |
idempotency_key |
string | 255 characters or fewer. | |
response_format |
string | detailed (default) returns the member as get_member reads it. concise returns the id, the name and what this call saved. One of concise, detailed. |
update_member
Change one member: omit a field to keep it, and send null to clear it. account_role_ids, resource_type_ids and team_ids replace the set, a team left out ends today, and a new default role starts today. The name is the person’s own, and they change it in Drum, where a member is also archived or restored. employment_start_date corrects the first day of the employment, from which reports count the member, so before a time import set it on or before the member’s first tracked time and first schedule (get_member warns when it is later). Use save_member_work_schedule and save_member_cost_rate for the schedule and the cost rate. The result is the member as get_member reads it, so do not read the member again.
| Title | Update member |
| Toolsets | People |
| Kind | Writes data, Idempotent |
| Needs | api_update and update_account_users. team_ids need customisation, role needs an admin, and account_role_ids need manage_permissions |
| Returns | member, saved_work_schedule, saved_cost_rate, replayed, unchanged, warnings |
| Input | Type | Required | Description |
|---|---|---|---|
member_id |
integer | Yes | From search_records or list_members. |
expected_role |
string | The role you read. A different role gives stale_state. | |
expected_default_resource_type_id |
integer | The default role you read. | |
role |
string | Needs an admin user. The account owner stays admin. One of admin, member, timesheet_only. |
|
account_role_ids |
array of integers | Permission roles, from search_records with kinds account_role. | |
expected_account_role_ids |
array of integers | The account role ids you read. | |
default_resource_type_id |
integer | From search_records with kinds resource_type. Cannot be cleared. | |
resource_type_ids |
array of integers | Other billable roles. | |
manager_id |
integer or null | From search_records or list_members. null clears it. | |
team_ids |
array of integers | From search_records with kinds team. | |
code |
string or null | The member’s short code. null clears it. | |
bookable |
boolean | The member can be booked on work. | |
time_zone |
string | For example Australia/Perth. | |
public_holiday_region |
string or null | The public holidays of the member. null clears it. | |
employment_start_date |
string | The first day of the member’s only employment period. It cannot be in the future or after recorded time. | |
expected_employment_start_date |
string | The employment start you read. A different one gives stale_state. | |
response_format |
string | detailed (default) returns the member as get_member reads it. concise returns the id, the name and what this call saved. One of concise, detailed. |
save_member_work_schedule
Set a member’s work schedule: the hours and times of each day, the standard weekly hours, the billable target and the employment type. Omit effective_from to change it from today, in the member’s time zone, and the earlier days keep the old schedule. For a member with one schedule, send its start date to correct it from its first day (the mode for account setup) or an earlier date to start it earlier, and a later employment start moves back with it, but a future date or a split of a longer history is refused (schedule_date_unsupported) and stays in Drum. Capacity reads the daily hours: billable_hours 0 is a day off, and a day left out keeps its hours and times. After a timeout, read the member with get_member before you try again. The result is the member as get_member reads it, so do not read the member again.
| Title | Save member work schedule |
| Toolsets | People |
| Kind | Writes data |
| Needs | api_update and update_account_users |
| Returns | member, saved_work_schedule, saved_cost_rate, replayed, unchanged, warnings |
| Input | Type | Required | Description |
|---|---|---|---|
member_id |
integer | Yes | From search_records or list_members. |
effective_from |
string | Default today. | |
expected_work_schedule_id |
integer or null | The current schedule id from get_member, or null for none. Another one gives stale_state. | |
employment_type |
string | Default full_time_salary. One of full_time_salary, full_time_wage, part_time, casual_contract, contractor. |
|
billable_percentage |
integer | The billable target, 0 to 100. | |
standard_weekly_hours |
number or null | A figure other than the sum of the days is an override, which the days share. null removes the override. | |
days |
object | A day left out keeps its hours and times. billable_hours is 0 to 24, and 0 is a day off with no times. Capacity reads it. start and end are HH:MM in the member’s time zone, the working window only, and null clears one. | |
days.sunday |
object | ||
days.sunday.billable_hours |
number | ||
days.sunday.start |
string or null | ||
days.sunday.end |
string or null | ||
days.monday |
object | ||
days.monday.billable_hours |
number | ||
days.monday.start |
string or null | ||
days.monday.end |
string or null | ||
days.tuesday |
object | ||
days.tuesday.billable_hours |
number | ||
days.tuesday.start |
string or null | ||
days.tuesday.end |
string or null | ||
days.wednesday |
object | ||
days.wednesday.billable_hours |
number | ||
days.wednesday.start |
string or null | ||
days.wednesday.end |
string or null | ||
days.thursday |
object | ||
days.thursday.billable_hours |
number | ||
days.thursday.start |
string or null | ||
days.thursday.end |
string or null | ||
days.friday |
object | ||
days.friday.billable_hours |
number | ||
days.friday.start |
string or null | ||
days.friday.end |
string or null | ||
days.saturday |
object | ||
days.saturday.billable_hours |
number | ||
days.saturday.start |
string or null | ||
days.saturday.end |
string or null | ||
response_format |
string | detailed (default) returns the member as get_member reads it. concise returns the id, the name and what this call saved. One of concise, detailed. |
save_member_cost_rate
Set a member’s cost rate per hour: it becomes the active rate, and the earlier rates stay as history. Drum costs time at the active rate when the time is saved, so time saved before the change keeps its cost, and you set rates before you import tracked time. A field left out is saved at its default (burden rate 0, no description), and a rate equal to the active rate changes nothing and answers unchanged true. This tool does not set effective_date: a date on an older rate is a note from the web form, and Drum does not cost time by it. The result is the member as get_member reads it, so do not read the member again.
| Title | Save member cost rate |
| Toolsets | People |
| Kind | Writes data |
| Needs | api_create and resource_financials |
| Returns | member, saved_work_schedule, saved_cost_rate, replayed, unchanged, warnings |
| Input | Type | Required | Description |
|---|---|---|---|
member_id |
integer | Yes | From search_records or list_members. |
cost_cents |
integer | Yes | Per hour. |
burden_rate_cents |
integer | Per hour, cost plus overheads. | |
description |
string | A note on the rate. | |
expected_cost_rate_id |
integer or null | The active cost rate id from get_member, or null for none. Another one gives stale_state. | |
idempotency_key |
string | 255 characters or fewer. | |
response_format |
string | detailed (default) returns the member as get_member reads it. concise returns the id, the name and what this call saved. One of concise, detailed. |
get_account_role
Read one account role, a permission set that members hold: its flags, grouped as in Drum, and its members. With no id, the flags of a new role and their defaults. Only an account admin can change sensitive_permissions. Send revision as expected_revision when you save the role.
| Title | Get account role |
| Toolsets | People |
| Kind | Read only, Idempotent |
| Needs | api_read and manage_permissions |
| Returns | id, name, description, revision, deleted, permissions, granted, sensitive_permissions, can_change_sensitive, permission_pairs, members, members_total, changed_permissions, warnings |
| Input | Type | Required | Description |
|---|---|---|---|
id |
integer | From search_records. Omit for a new role. | |
response_format |
string | detailed (default) has every flag. concise lists only the flags that are true. One of concise, detailed. |
save_account_role
Create an account role with no id, or change one by its id. permissions maps flag keys from get_account_role to true or false, and a flag left out does not change, or becomes false with replace_permissions. A change reaches every holder, and their tokens and agents, at once. To move members, add them here, then send remove_member_ids on their old role. Ask the user before you grant a sensitive permission. After a timeout, read the account roles with search_records before you try again.
| Title | Save account role |
| Toolsets | People |
| Kind | Writes data |
| Needs | api_create to create or api_update to change, and manage_permissions. Only an admin changes a sensitive permission, or the members of a role that grants one |
| Returns | id, name, description, revision, deleted, permissions, granted, sensitive_permissions, can_change_sensitive, permission_pairs, members, members_total, changed_permissions, warnings |
| Input | Type | Required | Description |
|---|---|---|---|
id |
integer | From search_records. Omit to create. | |
name |
string | Required when creating. | |
description |
string or null | What the role is for. null clears it. | |
permissions |
object | Flag key to true or false, for example {“read_invoices”: true}. | |
replace_permissions |
boolean | Flags left out become false. | |
add_member_ids |
array of integers | At most 200. | |
remove_member_ids |
array of integers | At most 200. | |
expected_revision |
string | revision from get_account_role. | |
response_format |
string | detailed (default) has every flag. concise lists only the flags that are true. One of concise, detailed. |