Skip to main content
Connector guides

Connect uSecure

uSecure is a human risk management platform for MSPs: security awareness training (uLearn), phishing simulations (uPhish), policy management (uPolicy), breach monitoring (uBreach) and the partner…

Written By Christopher Scaminaci

Last updated About 2 hours ago

uSecure is a human risk management platform for MSPs: security awareness training (uLearn), phishing simulations (uPhish), policy management (uPolicy), breach monitoring (uBreach) and the partner console that manages customer accounts (uService). StackJack connects an AI assistant to uSecure's GraphQL API.

Connecting uSecure to StackJack gives your AI assistant a family of usecure_ MCP tools. MCP (Model Context Protocol) tools are the standardized commands an AI assistant can call through StackJack. With them, your AI can:

  • Read the accounts - a company's account type, plan, learner count and limit, billing usage per period, settings and client companies
  • Manage the accounts (on Pro plans) - create and update MSP, customer and prospect accounts, change a plan's learner limit, suspend, delete and restore a company
  • Manage people - list and read learners and admin users; on Pro plans create, edit, deactivate, reactivate and delete them, and resend an admin's invitation
  • Manage groups - read groups and their learners, and set a group's managers (on Pro plans)
  • Run training - list courses, and on Pro plans enrol and unenrol learners on courses and on the Gap Analysis
  • Read reports - course participation, the uLearn report and a company's risk score history
  • Manage policies - read policies, policy templates and each learner's signature; on Pro plans create, update, publish, discard, delete and send them
  • Read phishing results - simulations, each learner's result, the send queue, totals and rates
  • Read breach data - the users found in data breaches and the breached services (uBreach)

How StackJack authenticates to uSecure

uSecure uses an API key, which StackJack sends in the x-api-key header on every call. You enter the key and the region your uSecure account is on.

Getting the API key

uSecure API access is by invitation. Contact uSecure support and ask for an API key for your account.

Ask for the API key, not a Client API Key. The Client API Key works only for the prospect sign-up call that a public web form makes, and StackJack does not offer that call.

Choosing the region

Choose the uSecure platform your account is on:

  • Europe (current) - public-api.eu.usecure.io
  • Europe (legacy) - public-api.usecure.io
  • United States - public-api.us.usecure.io

A key works only on the platform its account is on, so StackJack has no default and asks you to choose. If you are not sure, ask uSecure support when you ask for the key.

Connect it in StackJack

  1. Open Connectors, then uSecure.
  2. Choose the Region and enter the API key.
  3. Click Test connection. StackJack reads the key's own company (its name and account type). The test changes nothing.

Choose the region and enter the API key again whenever you save the connection, including when you only rename it.

What is worth knowing before you start

Every change needs approval

Every uSecure change is marked as one that needs approval before an agent can run it. Most of them reach real people or change what uSecure bills:

  • Creating an account or an admin user emails an invitation. Enrolling learners on a course or the Gap Analysis emails them, and sending a policy emails a signature request or a reminder.
  • Learners are uSecure's billing unit, so creating, importing and reactivating learners, ending a free trial and changing a learner limit can change the bill.
  • Suspending, deleting and restoring a company acts on the whole account. uSecure keeps a deleted account for 6 months, and usecure_start_restore_company can bring it back in that time.
  • Publishing a policy or a policy template makes it live, and resend emails it again to everyone who signed it.

Which company a call acts on

An MSP or distributor key reaches the companies under its account. Most tools take an optional companyId (uSecure's own ID) or an external ID (your own ID for the company). Without one, uSecure acts on the key's own company.

The tools that act on a whole company (usecure_update_msp, usecure_update_tenant, usecure_update_prospect, usecure_update_plan, usecure_suspend_account, usecure_delete_company, usecure_start_restore_company) need a companyId or an externalId. StackJack refuses the call without one, so a forgotten argument never suspends or deletes your own account.

Lists are not paged

uSecure's lists (learners, groups, policies, simulations, breaches) answer the whole list in one call. StackJack sends at most 500 IDs in one list argument; split a longer list into several calls.

Settings are JSON objects

The account settings (settingsJson, defaultTenantSettingsJson), the policy signature settings (signatureSettingsJson) and a bulk learner import (learnersJson) take JSON text. Each tool's description names the fields uSecure accepts.

Policies from a PDF

usecure_create_policy and usecure_create_policy_template need the key of a PDF that is already uploaded to uSecure (the pdfFile value uSecure's /upload-policy endpoint answers). StackJack does not upload files to uSecure. To create a policy without a PDF, use usecure_create_policy_from_template.

What StackJack does not offer

  • signUpProspect: it works only with a Client API Key, which a connection does not hold. Use usecure_create_prospect.
  • createGroup: uSecure's documentation lists it with no name argument, so StackJack does not guess one. Create groups in the uSecure app.
  • The two file uploads (/upload-policy, /upload-policy-template-tile).
  • File links: the policy and template answers leave out the file fields, because uSecure does not document whether they are storage keys or links.

Rate limit

uSecure documents no rate limit. StackJack paces one connection at 60 calls a minute.

When uSecure refuses a call

  • The key is refused (401): the key is wrong, was revoked, or belongs to another platform than the region you chose. Ask uSecure support for the API key and check the region.
  • Not allowed (403): the key may not do this, for example on a company that is not under your account.
  • A GraphQL error: uSecure answers with a message and often a code in brackets, for example a learner or company that does not exist. Repeating the call fails the same way.
  • The connection test cannot judge the key: uSecure documents no answer for a wrong key, so only uSecure's own 401 counts against the connection. A 403, a GraphQL error or a refusal by a proxy is reported without counting.
  • Rate limited (429) or an outage (5xx): wait and try again.

Plans and limits

Reads are available on the Free tier. Every change is Pro. Business reaches the same tools as Pro and differs by monthly call quota.

See the generated uSecure tool reference for the current inventory, plan assignment, input schemas and destructive-action labels.

uSecure tools

usecure_ · 63 tools · Free 23 · Pro 40

Companies

ToolWhat it does
usecure_create_msp
Pro · Destructive
DESTRUCTIVE.
usecure_create_prospect
Pro · Destructive
DESTRUCTIVE.
usecure_create_tenant
Pro · Destructive
DESTRUCTIVE.
usecure_delete_company
Pro · Destructive
DESTRUCTIVE.
usecure_get_company
Free · Read-only
Get a company: its account type (msp, tenant, distributor, prospect), plan (learner count and limit, domain lock), billing usage per period, uBreach Pro state, main settings and its client companies.
usecure_get_restore_company_status
Free · Read-only
Check a company restore job: pending, completed or failed.
usecure_start_restore_company
Pro · Destructive
DESTRUCTIVE.
usecure_suspend_account
Pro · Destructive
DESTRUCTIVE.
usecure_update_msp
Pro · Destructive
DESTRUCTIVE.
usecure_update_plan
Pro · Destructive
DESTRUCTIVE.
usecure_update_prospect
Pro · Destructive
DESTRUCTIVE.
usecure_update_tenant
Pro · Destructive
DESTRUCTIVE.

Admin users

ToolWhat it does
usecure_create_admin_user
Pro · Destructive
DESTRUCTIVE.
usecure_delete_admin_user
Pro · Destructive
DESTRUCTIVE.
usecure_delete_admin_users
Pro · Destructive
DESTRUCTIVE.
usecure_get_admin_user
Free · Read-only
Get one admin user.
usecure_list_admin_users
Free · Read-only
List the admin users of a company (the people who can administer the platform), with whether each has verified their account.
usecure_resend_admin_user_invite
Pro · Destructive
DESTRUCTIVE.
usecure_update_admin_user
Pro · Destructive
DESTRUCTIVE.

Learners

ToolWhat it does
usecure_create_learner
Pro · Destructive
DESTRUCTIVE.
usecure_create_learners
Pro · Destructive
DESTRUCTIVE.
usecure_delete_learner
Pro · Destructive
DESTRUCTIVE.
usecure_delete_learners
Pro · Destructive
DESTRUCTIVE.
usecure_edit_learner
Pro · Destructive
DESTRUCTIVE.
usecure_get_learner
Free · Read-only
Get one learner with their course and Gap Analysis results, policy signatures and phishing simulation results.
usecure_list_learners
Free · Read-only
List a company's learners (end users): name, email, active or inactive, manager, groups, language and risk score level.
usecure_mark_learners_active
Pro · Destructive
DESTRUCTIVE.
usecure_mark_learners_inactive
Pro · Destructive
DESTRUCTIVE.

Groups

ToolWhat it does
usecure_edit_group_managers
Pro · Destructive
DESTRUCTIVE.
usecure_get_group
Free · Read-only
Get one learner group with its learners, parent and child groups and managers.
usecure_list_groups
Free · Read-only
List a company's learner groups with their learner counts, parent and child groups and managers.

Courses

ToolWhat it does
usecure_enroll_learners_on_courses
Pro · Destructive
DESTRUCTIVE.
usecure_enroll_learners_on_gap_analysis
Pro · Destructive
DESTRUCTIVE.
usecure_get_course
Free · Read-only
Get one course.
usecure_list_courses
Free · Read-only
List the courses available to the key's account: name, subject, category, difficulty and description.
usecure_unenroll_learners_from_courses
Pro · Destructive
DESTRUCTIVE.
usecure_unenroll_learners_from_gap_analysis
Pro · Destructive
DESTRUCTIVE.

Reports

ToolWhat it does
usecure_get_company_risk_score_history
Free · Read-only
Get a company's human risk score over time.
usecure_get_course_participation
Free · Read-only
Get the course participation report: the group tree, the courses, and each learner's course results.
usecure_get_ulearn_report
Free · Read-only
Get the uLearn training report, optionally for one learner or one course.

Policies

ToolWhat it does
usecure_create_policy
Pro · Destructive
DESTRUCTIVE.
usecure_create_policy_from_template
Pro · Destructive
DESTRUCTIVE.
usecure_delete_policies
Pro · Destructive
DESTRUCTIVE.
usecure_discard_draft_policy
Pro · Destructive
DESTRUCTIVE.
usecure_get_policy
Free · Read-only
Get one policy with its versions and each learner's signature result (visited, signed, version signed).
usecure_list_policies
Free · Read-only
List a company's policies: live or draft, version, category, owner and signature settings.
usecure_publish_draft_policy
Pro · Destructive
DESTRUCTIVE.
usecure_remove_learners_from_policy
Pro · Destructive
DESTRUCTIVE.
usecure_send_policies_to_learners
Pro · Destructive
DESTRUCTIVE.
usecure_update_policy
Pro · Destructive
DESTRUCTIVE.

Policy templates

ToolWhat it does
usecure_create_policy_template
Pro · Destructive
DESTRUCTIVE.
usecure_delete_policy_templates
Pro · Destructive
DESTRUCTIVE.
usecure_discard_draft_policy_template
Pro · Destructive
DESTRUCTIVE.
usecure_get_policy_template
Free · Read-only
Get one policy template.
usecure_list_policy_templates
Free · Read-only
List policy templates: live or draft, category, whether shared (global) and with which companies.
usecure_publish_draft_policy_template
Pro · Destructive
DESTRUCTIVE.
usecure_update_policy_template
Pro · Destructive
DESTRUCTIVE.

Phishing simulations

ToolWhat it does
usecure_get_simulation
Free · Read-only
Get one phishing simulation with each learner's result (opened, visited, compromised, reported) and the queue of scheduled sends.
usecure_get_simulation_metrics
Free · Read-only
Get a company's phishing totals (opened, visited, compromised, reported) and each simulation's counts.
usecure_get_simulation_performance
Free · Read-only
Get each simulation's open, visit, compromise and report rates.
usecure_list_simulations
Free · Read-only
List a company's phishing simulations with their status, dates and sent, opened, visited, compromised and reported counts.

Breaches

ToolWhat it does
usecure_list_breached_services
Free · Read-only
List the breached services (uBreach) with their dates, data classes, severity and the users in each.
usecure_list_breached_users
Free · Read-only
List the users found in data breaches (uBreach): email, domain, whether they are a learner, and each breach (service, dates, data classes, severity).