Skip to content

Permission profiles

A permission profile is a named set of permissions that decides what the people holding it can do. Every person on the team holds exactly one. Each business starts with base profiles (Admin, Manager, Member, Sales, People Admin, Accounting and Project Manager) and can add custom profiles.

Reading profiles needs any one of these permissions: see profiles and permissions (view-business-roles-and-permissions), create, edit or delete profiles, invite team members, or edit team members. By default administrators (Admin) and People Admin can read profiles; members and managers cannot. Creating, editing and deleting profiles each need their own permission (create-business-role, edit-business-role, delete-business-role), which only the Admin profile has by default. Assigning a profile to people needs the permission to edit profiles, and nobody can assign a profile that carries team or settings permissions they do not have themselves.

A named set of permissions.

Field Type Description
id string The profile’s id. Read only.
name string The profile’s name, up to 100 characters, unique in the business (capital letters are ignored when comparing).
description string What the profile is for, up to 191 characters; null when none was given. Can be null.
isBaseProfile boolean true for the profiles every business starts with (Base profiles in the app); false for profiles the business added (Custom profiles). Base profiles cannot be deleted. Read only.
baseProfileKey string For a base profile, a fixed key that stays the same when the profile is renamed: administrator (Admin), executive_manager (Manager), member (Member), sales (Sales), people_admin (People Admin), accounting (Accounting) or project_manager (Project Manager). null for custom profiles. Read only. Can be null.
isEditable boolean false only for the Admin profile, which always has every permission and cannot be changed; true for every other profile. Read only.
permissionIds array of string Ids of the permissions the profile grants, from /v1/permissions.
permissionCount integer How many permissions the profile grants. Read only.
memberCount integer How many people hold the profile. Read only.
createdAt datetime When the profile was created. Read only.
updatedAt datetime When the profile was last changed. Read only.

The outcome of assigning a profile.

Field Type Description
assigned array of object People moved onto the profile, each { id, name }, where id is the team member id. Read only.
skipped array of object People not moved, each { id, name, reason }. reason is notOnTeam (the id is not a team member of this business) or accountOwner (the Account Owner’s profile cannot be changed). Read only.

Returns every permission profile in the business, oldest first. The profile used for client portal access is not a team profile and is never listed.

GET /v1/permission-profiles

Parameters

Parameter In Type Required Description
page query integer No Page number, from 1. Default 1.
limit query integer No Records per page. Default 20, at most 1000.
search query string No Only profiles whose name contains this text.
isBaseProfile query boolean No true for base profiles only, false for custom profiles only.
sortField query string No createdAt (default) or name.
sortOrder query string No asc (default) or desc.
updatedSince query datetime No Only profiles changed at or after this moment. Records deleted since then are not reported.

Rules

  • 403 when the token’s person has none of these permissions: see profiles and permissions (view-business-roles-and-permissions), create, edit or delete profiles, invite team members, or edit team members.

Example request

Terminal window
curl "https://api.onesuite.io/v1/permission-profiles?isBaseProfile=false" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cmh4a2s9d0001u8n2cf6q1w7c",
"name": "Studio lead",
"description": "Runs the studio's projects and sees team rates.",
"isBaseProfile": false,
"baseProfileKey": null,
"isEditable": true,
"permissionIds": [
"cmf0a1b2c0010c0r8pe1d2e3f",
"cmf0a1b2c0011c0r8pe4g5h6i",
"cmf0a1b2c0012c0r8pe7j8k9l"
],
"permissionCount": 3,
"memberCount": 1,
"createdAt": "2026-08-14T13:20:00.000Z",
"updatedAt": "2026-10-02T15:04:31.882Z"
}
],
"totalCount": 1,
"page": 1,
"limit": 20
}

Returns one profile with the permissions it grants.

GET /v1/permission-profiles/:id

Parameters

Parameter In Type Required Description
id path string Yes The profile’s id.

Rules

  • 403 when the token’s person has none of these permissions: see profiles and permissions (view-business-roles-and-permissions), create, edit or delete profiles, invite team members, or edit team members.
  • 404 when the profile does not exist in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/permission-profiles/cmg9p1r7e0002t3k1mb8w0z4a" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member",
"description": "Tracks their own time and expenses.",
"isBaseProfile": true,
"baseProfileKey": "member",
"isEditable": true,
"permissionIds": [
"cmf0a1b2c0010c0r8pe1d2e3f",
"cmf0a1b2c0012c0r8pe7j8k9l"
],
"permissionCount": 2,
"memberCount": 14,
"createdAt": "2025-06-01T08:00:00.000Z",
"updatedAt": "2026-03-11T10:15:00.000Z"
}
}

Creates a custom profile from a list of permissions. Answers 201 with the new profile.

POST /v1/permission-profiles

Parameters

Parameter In Type Required Description
name body string Yes The profile’s name, 1 to 100 characters after trimming spaces, unique in the business.
description body string No What the profile is for, up to 191 characters.
permissionIds body array of string Yes Ids of the permissions the profile grants, from /v1/permissions; at least one.

Rules

  • 403 when the token’s person does not have the permission to create profiles (create-business-role).
  • 400 when the name is empty or longer than 100 characters, the description is longer than 191 characters, or permissionIds is empty.
  • 400 “Unknown permission ids: …” naming the ids that are not in the permission catalogue.
  • 409 “A profile with that name already exists” when another profile has the same name (capital letters ignored).

Example request

Terminal window
curl "https://api.onesuite.io/v1/permission-profiles" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Studio lead","description":"Runs the studio'\''s projects and sees team rates.","permissionIds":["cmf0a1b2c0010c0r8pe1d2e3f","cmf0a1b2c0011c0r8pe4g5h6i","cmf0a1b2c0012c0r8pe7j8k9l"]}'

Example response — status 201

{
"data": {
"id": "cmh4a2s9d0001u8n2cf6q1w7c",
"name": "Studio lead",
"description": "Runs the studio's projects and sees team rates.",
"isBaseProfile": false,
"baseProfileKey": null,
"isEditable": true,
"permissionIds": [
"cmf0a1b2c0010c0r8pe1d2e3f",
"cmf0a1b2c0011c0r8pe4g5h6i",
"cmf0a1b2c0012c0r8pe7j8k9l"
],
"permissionCount": 3,
"memberCount": 0,
"createdAt": "2026-11-20T11:10:00.000Z",
"updatedAt": "2026-11-20T11:10:00.000Z"
}
}

Renames a profile, changes its description, or changes its permissions. Send only the fields to change. Base profiles can be edited too, except Admin. permissionIds replaces the whole set. Everyone holding the profile gets the new set from their next request; their own per-person changes are kept.

PATCH /v1/permission-profiles/:id

Parameters

Parameter In Type Required Description
id path string Yes The profile’s id.
name body string No New name, 1 to 100 characters after trimming spaces, unique in the business.
description body string No New description, up to 191 characters.
permissionIds body array of string No The complete new set of permission ids; at least one.

Rules

  • 403 when the token’s person does not have the permission to edit profiles (edit-business-role).
  • 409 “The Admin profile can’t be changed” for the Admin profile.
  • 400 when the name is empty or longer than 100 characters, the description is longer than 191 characters, permissionIds is empty, or a permission id is not in the catalogue.
  • 409 “A profile with that name already exists” when another profile has the new name.
  • 404 when the profile does not exist in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/permission-profiles/cmh4a2s9d0001u8n2cf6q1w7c" \
-X PATCH \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"permissionIds":["cmf0a1b2c0010c0r8pe1d2e3f","cmf0a1b2c0011c0r8pe4g5h6i"]}'

Example response — status 200

{
"data": {
"id": "cmh4a2s9d0001u8n2cf6q1w7c",
"name": "Studio lead",
"description": "Runs the studio's projects and sees team rates.",
"isBaseProfile": false,
"baseProfileKey": null,
"isEditable": true,
"permissionIds": [
"cmf0a1b2c0010c0r8pe1d2e3f",
"cmf0a1b2c0011c0r8pe4g5h6i"
],
"permissionCount": 2,
"memberCount": 1,
"createdAt": "2026-08-14T13:20:00.000Z",
"updatedAt": "2026-11-20T11:12:09.300Z"
}
}

Deletes a custom profile. People who held it are left with no profile, and keep only their own per-person permissions, until they are given another profile.

DELETE /v1/permission-profiles/:id

Parameters

Parameter In Type Required Description
id path string Yes The profile’s id.

Rules

  • 403 when the token’s person does not have the permission to delete profiles (delete-business-role).
  • 409 “Base profiles can’t be deleted” for a base profile, and “The Admin profile can’t be deleted” for Admin.
  • 404 when the profile does not exist in this business.
  • People who held the profile lose its permissions from their next request.

Example request

Terminal window
curl "https://api.onesuite.io/v1/permission-profiles/cmh4a2s9d0001u8n2cf6q1w7c" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Profile deleted"
}

Moves the named people onto this profile. A person holds one profile, so this replaces their current one; their own per-person permission changes are kept. Ids that cannot be moved are listed in skipped instead of failing the request.

POST /v1/permission-profiles/:id/assign

Parameters

Parameter In Type Required Description
id path string Yes The profile’s id.
memberIds body array of string Yes Team member ids of the people to move; at least one.

Rules

  • 403 when the token’s person does not have the permission to edit profiles (edit-business-role).
  • 403 “You can’t grant a profile with more team or settings access than your own” when the profile carries team or settings permissions the token’s person does not have.
  • 400 when memberIds is empty.
  • 404 when the profile does not exist in this business.
  • Ids that are not team members of this business, and the Account Owner, are not moved: they are listed in skipped with the reason, and the others are moved. The answer is 200 either way.

Example request

Terminal window
curl "https://api.onesuite.io/v1/permission-profiles/cmg9p1r7e0006t3k1pm3x9y2b/assign" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"memberIds":["cmh2k8w1q0004s6l0an4x7d2e","cmh2k8w1q0007s6l0bn9r3c5f"]}'

Example response — status 200

{
"data": {
"assigned": [
{
"id": "cmh2k8w1q0004s6l0an4x7d2e",
"name": "Ana Ortega"
},
{
"id": "cmh2k8w1q0007s6l0bn9r3c5f",
"name": "Ben Adeyemi"
}
],
"skipped": []
}
}