Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Inforcer

Inforcer connects Stackyapper to your managed Microsoft 365 tenants, baselines, alignment scores and details, policies, Microsoft Secure Score data, users, groups, roles, audit events, and assessments.
See the Inforcer tools and API reference to match any Stackyapper inforcer_* tool to its Inforcer API endpoint and access level.

How authentication works

Inforcer uses an Organization connection in Stackyapper. A workspace owner or admin sets up the shared connection once; if you use managed customer workspaces, start in your managing workspace.
The connection stores two values:
  • API key: your organization’s Inforcer API key, sent in the Inf-Api-Key header.
  • Region (anz, eu, uk, or us): selects the matching regional Inforcer API host. Inforcer API keys are region-specific and work only with the regional host where they were created.

Prepare Inforcer

Confirm your Inforcer region and obtain an organization API key before connecting in Stackyapper.
  1. Confirm your Inforcer region
    Identify the regional Inforcer portal your organization uses and match it to the exact lowercase region code Stackyapper expects:
    RegionValue to enter in StackyapperAPI host used
    Australia and New Zealandanzhttps://api-anz.inforcer.com
    Europeeuhttps://api-eu.inforcer.com
    United Kingdomukhttps://api-uk.inforcer.com
    United Statesushttps://api-us.inforcer.com
  2. Get an Inforcer API key
    Ask your Inforcer administrator to create or provide an organization API key from your regional Inforcer portal for Stackyapper. Keep the key out of chat messages and support tickets.

Connect in Stackyapper

  1. Save the Inforcer connection
    1. Open Apps → Inforcer in Stackyapper and select Add connection.
    2. Paste your key into API key.
    3. In Region (anz, eu, uk, or us), enter your lowercase region code: anz, eu, uk, or us.
    4. Select Connect.
    Stackyapper saves the connection as Configured and checks it on the first real call.
  2. Verify with a read-only call
    Grant yourself access to list Inforcer tenants (inforcer_tenants_list), run that read from a connected AI client, and confirm it succeeds in Audit before enabling broader tools for your team.

Rotate credentials or change region

  • Rotate the API key: Create a replacement key in your regional Inforcer portal, open Apps → Inforcer → Manage connection in Stackyapper, enter the new API key, and select Save changes. Confirm a read call succeeds in Audit before revoking the previous key in Inforcer.
  • Change the region: Update Region (anz, eu, uk, or us) together with an API key issued by that regional Inforcer portal, then select Save changes.

Permissions and access controls

  • Access controls: Connecting Inforcer does not grant every user every tool. Workspace owners and admins control which tools each group or person can use in Tools & access and App limits. See Understand access.
  • Running assessments: 14 of the 15 Inforcer tools are read-only, including audit search (inforcer_audit_search), which uses POST only to query activity history. The single write tool (inforcer_assessments_run) starts an assessment run for a tenant and requires the exact confirmation input RUN INFORCER ASSESSMENT, in addition to workspace tool permissions and any workspace confirmation policy.

What your AI client can work with

Stackyapper’s Inforcer app provides 15 tools (14 reads and 1 write):
AreaExamples
Tenants and baselinesList managed Microsoft 365 tenants, list baselines (optionally filtered by baselineTenantId)
Alignment, policies, and secure scoresList alignment scores across tenants, inspect a tenant’s alignment details, policies, and Microsoft Secure Score data
Users, groups, and rolesSearch and inspect a tenant’s users and groups with continuationToken pagination, list tenant roles
Audit activityList available audit event types, search audit events by event type and ISO-8601 date range
AssessmentsList assessments, start an assessment run for a tenant (inforcer_assessments_run)

Working with tenant-scoped tools

Tenant-scoped tools require the numeric Inforcer Client Tenant ID (digits only, for example 12345), not a customer display name or Microsoft Entra GUID. Start by listing tenants to look up the numeric ID for the tenant you want to inspect.
Inforcer tools and API reference
Search all 15 Inforcer tools and match each one to its Inforcer API endpoint and access level.

Troubleshooting

Connection is saved, but every call fails immediately
Cause: Region (anz, eu, uk, or us) was not entered as one of the exact lowercase codes (anz, eu, uk, or us) — for example, it includes uppercase letters, extra spaces, or a full URL.
Fix: Open Apps → Inforcer → Manage connection, enter lowercase anz, eu, uk, or us in Region (anz, eu, uk, or us), and select Save changes.
Credentials rejected (401)
Cause: The API key is invalid or revoked, or it belongs to a different Inforcer region than the one entered in Stackyapper.
Fix: Confirm the region code matches the regional Inforcer portal where the key was created, verify the key is active, and update it in Manage connection.
Access denied (403)
Cause: Inforcer accepted the key format, but the key does not have permission for the requested resource or tenant.
Fix: Ask your Inforcer administrator to check the permissions assigned to the API key in Inforcer.
Tenant-scoped tool rejects the tenant ID
Cause: A tenant name or Microsoft Entra GUID was passed instead of the numeric Inforcer Client Tenant ID.
Fix: Run inforcer_tenants_list first and pass the numeric Client Tenant ID (digits only) in tenantId.
Assessment run is rejected
Cause: inforcer_assessments_run requires the exact confirm value RUN INFORCER ASSESSMENT, or the signed-in user does not have access to that tool.
Fix: Confirm the user has access to inforcer_assessments_run in Tools & access and pass RUN INFORCER ASSESSMENT as the confirm input.
Teammates cannot see or run Inforcer tools
Cause: Saving the organization connection supplies the credential, but tool access is still governed by workspace permissions.
Fix: Open Tools & access in Stackyapper and assign the required Inforcer tools to the appropriate groups or users. See Understand access.