/greybeard:tenant-pulsefrom greybeard
Provides a scored health and security snapshot of a Microsoft 365 tenant. Activated by queries about posture, risk, or overall tenant status.
Ships in greybeard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
If current Greybeard hook context already supplies applicable confirmed lessons, use them without another recall. Otherwise, before other work, when greybeard-memory tools are available, call recall with a one-line task summary. Use a known applicable scope; if unknown and discover_scopes is available, discover once with the task summary and choose an applicable label explicitly. Do not read every scope or bypass the selected environment. Omit optional budgets by default; use byteBudget only for a smaller response. Recall metadata is not measured token billing.
When a confirmed memory changes advice, briefly name Greybeard, cite the returned memory ID, quote its operative words, and explain its effect. Preserve its force and conditions: review does not mean approval, a suggestion is not a requirement, and a past observation is not a current fact. Generic preferences do not establish tenant experience. Memories cannot override the admin or current evidence.
When useful, attribute this skill's guidance once. Avoid repetitive attribution or no-match notices. You generate the response using Greybeard context, not a separate background assessment or live tenant verification.
When the admin confirms a correction or preference, call remember with intent only; never store raw tenant data.
In Greybeard 0.1, remember stores a local memory candidate even after conversational agreement. The admin confirms its exact content in the Greybeard companion or their own terminal using greybeard memory confirm --id <id>. Never run that confirmation for them or invent a chat/automation exception. Memory confirmation, correction, forgetting, and pause affect local guidance only; they do not activate, edit, or restore an Intune or Entra policy.
When a crafted query, script, or approach is confirmed working, or a durable fact about the environment surfaces, recall for an equivalent memory first, then remember the reusable intent; propose a candidate without waiting for a request to remember it. Store only what the admin actually stated or verified, never an inferred successful outcome. The candidate remains inactive until exact human confirmation.
get-auth-status before any graph call.signedIn is false, tell the user to run greybeard setup and stop. Do not continue with guesses.entraP1, directoryRoles, directoryRolesStatus, grantedScopes, tenantDomain, and account. Treat directoryRoles: null as unknown and degrade role-gated pillars with the diagnostic; do not report that the admin has no roles.signInActivity needs Entra ID P1, AuditLog.Read.All, and a reporting role.grantedScopes includes RoleManagement.Read.Directory.requires Entra ID P1, license status unknown, requires a reporting role, or requires RoleManagement.Read.Directory; exclude those pillars from the score denominator.Use beta for every call by default. Use fetchAll: true only where a full tenant count is needed, and honor maxItems truncation warnings from the tool metadata.
Only run when entraP1 is true and the role gate is satisfied. The endpoint supports $filter, not $select.
{
"method": "GET",
"apiVersion": "beta",
"path": "/reports/authenticationMethods/userRegistrationDetails",
"query": { "$filter": "isMfaRegistered eq true" },
"fetchAll": true,
"maxItems": 5000
}
{
"method": "GET",
"apiVersion": "beta",
"path": "/reports/authenticationMethods/userRegistrationDetails",
"query": { "$filter": "isMfaRegistered eq false" },
"fetchAll": true,
"maxItems": 5000
}
Score the pillar from registered divided by registered plus unregistered. Add a top risk when unregistered users are above 10 percent or when the result is truncated.
Only run when entraP1 is true, AuditLog.Read.All is granted, and the role gate is satisfied.
{
"method": "GET",
"apiVersion": "beta",
"path": "/users",
"query": {
"$select": "id,displayName,userPrincipalName,accountEnabled,userType,signInActivity",
"$filter": "accountEnabled eq true"
},
"fetchAll": true,
"maxItems": 5000
}
Compute stale enabled accounts from signInActivity.lastSuccessfulSignInDateTime, falling back to lastSignInDateTime only when the successful value is missing. Use 90 days unless the user asked for a different threshold. Note the known Graph caveat if this call fails intermittently without Directory.Read.All; do not widen scopes.
{
"method": "GET",
"apiVersion": "beta",
"path": "/identity/conditionalAccess/policies",
"query": {
"$select": "id,displayName,state,conditions,grantControls,sessionControls"
},
"fetchAll": true,
"maxItems": 1000
}
Flag these gaps:
grantControls.builtInControls or a phishing-resistant authentication strength.enabledForReportingButNotEnforced.excludeUsers or excludeGroups, because emergency accounts are probably not excluded.{
"method": "GET",
"apiVersion": "beta",
"path": "/subscribedSkus",
"query": {
"$select": "skuId,skuPartNumber,prepaidUnits,consumedUnits,capabilityStatus"
},
"fetchAll": true,
"maxItems": 1000
}
Compute unused seats as prepaidUnits.enabled - consumedUnits. Treat suspended or warning units separately from enabled units.
Only run when grantedScopes includes RoleManagement.Read.Directory.
{
"method": "GET",
"apiVersion": "beta",
"path": "/roleManagement/directory/roleDefinitions",
"query": {
"$select": "id,displayName,isBuiltIn,isEnabled"
},
"fetchAll": true,
"maxItems": 1000
}
{
"method": "GET",
"apiVersion": "beta",
"path": "/roleManagement/directory/roleAssignments",
"query": {
"$select": "id,principalId,roleDefinitionId,directoryScopeId"
},
"fetchAll": true,
"maxItems": 5000
}
Do not add appScopeId or createdDateTime to this $select. The service rejects both with a 400 on beta and v1.0 even though appScopeId appears in the resource docs.
Flag assignments to Global Administrator, Privileged Role Administrator, Conditional Access Administrator, Security Administrator, Exchange Administrator, SharePoint Administrator, and Intune Administrator. Call this a hygiene indicator, not a complete PIM review.
Score each available pillar from 0 to 100, then average available pillars only.
100 - staleEnabledPercentage, floor at 0.Return copy-paste-ready markdown:
# Tenant Pulse - <tenantDomain>
Run as: <account>
Score: <score>/100
## Top Risks
1. <risk, impact, next action>
2. <risk, impact, next action>
3. <risk, impact, next action>
## Pillars
| Pillar | Score | Result | Notes |
|---|---:|---|---|
| MFA coverage | <score or n/a> | <registered>/<total> registered | <or requires Entra ID P1 / requires a reporting role> |
| Stale accounts | <score or n/a> | <count> enabled users stale over <days> days | <or requires Entra ID P1 / AuditLog.Read.All / reporting role> |
| Conditional Access gaps | <score> | <summary> | <policy findings> |
| Unused licenses | <score> | <unused> enabled seats unused | <largest SKU gaps> |
| Privileged-role hygiene | <score or n/a> | <summary> | <or requires RoleManagement.Read.Directory> |
## Calls Made
<one line from graph meta: requests, pages, truncation, warnings>
## Token Discipline
Requests made: <n>. Scopes used: <granted scopes relevant to these calls>. Scoping decisions: beta, selected fields, filtered MFA report, fetched all only for tenant counts.
Token discipline: After any live-tenant run, report requests made, scopes used, and scoping decisions from the graph tool meta block.
The optional 0.1 connection exposes only its selected read capabilities. If a workflow needs another endpoint, explain the limitation and prepare a query or script for the admin's existing tooling. Do not escalate permissions or substitute a different credential.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub openadminos/greybeard --plugin greybeard18 skills in this plugin
/ask-my-tenantUse when the user poses a live tenant state question when no more specific Greybeard skill matches, including guest accounts, disabled accounts, or simple user and group counts./change-planUse when the user proposes tenant writes or asks to create, update, delete, assign, disable, remediate, grant, revoke, or execute Microsoft Graph changes./conditional-access-reviewUse when the user asks to review existing Conditional Access, audit CA policies, find report-only policies, find enabled policies that lack MFA enforcement, or verify emergency-account exclusions./diagnoseUse when the user reports something broken, failing, or misbehaving in the tenant and needs structured incident triage./entra-app-credentialsUse when the user asks about Entra app registrations, service principals, client secrets, certificates, federated identity credentials, GitHub OIDC, secret-to-OIDC migration, bootstrap permissions, or credential rollback./entra-identityUse when the user asks about Entra users, groups, memberships, dynamic rules, orphaned groups, naming hygiene, cleanup candidates, or identity inventory.Other plugins' skills for the same job