add-office365-users

add-office365-users is a skill for Claude Code from microsoft/managed-apps. It costs 51 tokens per session (1,299 once invoked), scanned A, original, MIT.

A connector setup for Microsoft Office 365 user data. Office 365 is Microsoft's hosted work suite; this connector provides access to profiles, managers, direct reports, people search, and profile photos through generated service methods.

In plain words
What is it for?
It helps add an Office 365 data source and retrieve the signed-in user's profile, another user's profile, reporting relationships, search results, or photo data.
Why use it?
It gives an application a defined way to request common user-directory information instead of implementing those requests itself.

Skill for Claude Code ✓ vendor

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { Office365UsersService } from '../../generated/services/Office365UsersService'.

Part of the microsoft-managed-apps plugin — 22 skills, 1 agent shipped together

Good fit It helps add an Office 365 data source and retrieve the signed-in user's profile, another user's profile, reporting relationships, search results, or photo data.

Compare 6 skills from other repositories ↓
About the project

Microsoft Managed Apps is a project for building custom web applications with React, TypeScript, and Vite, and it provides Microsoft's official templates and development tooling. Developers use its SDK, CLI, and Vite plugin to create and manage these applications. Its catalogue add-ons help AI coding agents build Microsoft Managed Apps.

microsoft/managed-apps · 36 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/microsoft/managed-apps
agentmods
npx agentmods add skills/microsoft/managed-apps/add-office365-users

Made for: Claude Code.

Or install microsoft-managed-apps, the plugin that ships this one along with the rest of its 22 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-office365-users

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/managed-apps/add-office365-users/github.svg)](https://agentmods.dev/skills/microsoft/managed-apps/add-office365-users)
Your own site
<a href="https://agentmods.dev/skills/microsoft/managed-apps/add-office365-users"><img src="https://agentmods.dev/badge/skills/microsoft/managed-apps/add-office365-users/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-office365-users

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/managed-apps/add-office365-users"><img src="https://agentmods.dev/badge/skills/microsoft/managed-apps/add-office365-users.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,299 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01299
Opus 5.5 $0.00020 $0.00520
Sonnet 5.5 $0.00010 $0.00260
Haiku 4.5 $0.00005 $0.00130

Measured 5d ago against content hash efe00ecf1c8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-office365-users scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/microsoft-managed-apps/skills/add-office365-users/SKILL.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

📋 Shared Instructions: shared-instructions.md — Cross-cutting concerns.

Add Office 365 Users (Wrapper)

This skill is a thin wrapper. Use /add-data-source as the single implementation path.

Delegation contract

Invoke /add-data-source with:

  • api-id: shared_office365users
  • mode: action

Office 365 Users: Method Selection Guide

After the connector is added, import the generated service:

import { Office365UsersService } from '../../generated/services/Office365UsersService'

Use the V2 methods for profiles and reporting relationships:

Scenario Method Result
Current signed-in user MyProfile_V2($select?) One GraphUser_V1
Specific user by ID or UPN UserProfile_V2(id, $select?) One GraphUser_V1
User's manager Manager_V2(id, $select?) One GraphUser_V1
Direct reports DirectReports_V2(id, $select?, $top?) Profiles in result.data.value
Search people SearchUserV2(searchTerm, top?, ...) Search response in result.data.value
Profile photo UserPhotoMetadata(userId), then UserPhoto_V2(id) Metadata, then binary image data

DirectReports_V2 requires the target manager's Microsoft Entra directory ID or user principal name (UPN). For the signed-in user, call MyProfile_V2('id,userPrincipalName'), then pass the returned id or fall back to userPrincipalName. For a known person, pass their directory ID or UPN directly.

Profile and direct-report pattern

Request only the fields the UI needs:

const fields = [
  'id',
  'displayName',
  'jobTitle',
  'department',
  'mail',
  'userPrincipalName',
  'officeLocation',
].join(',')

const myProfile = await Office365UsersService.MyProfile_V2(
  'id,userPrincipalName',
)
if (!myProfile.success) {
  throw new Error(myProfile.error?.message ?? 'Failed to resolve current user')
}

const managerId =
  myProfile.data?.id ?? myProfile.data?.userPrincipalName

if (!managerId) {
  throw new Error('Current user profile did not include an ID or UPN')
}

const result = await Office365UsersService.DirectReports_V2(
  managerId,
  fields,
)

if (!result.success) {
  throw new Error(result.error?.message ?? 'Failed to load direct reports')
}

const people = result.data?.value ?? []

Read the full file on GitHub · 170 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · -2 lines efe00ecf1c8c
  2. 1mo ago First seen · 172 lines · 51 tokens per session scan A 2a2bc0b8625e

Subscribe to this mod's changes

add-office365-users is a skill published in the GitHub repository microsoft/managed-apps (36 stars, last pushed 3d ago), licensed MIT. It adds 51 tokens to every session and 1,299 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.

Related

add-office365-users compared with skills from other repositories

add-office365-users next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-office365-usersmicrosoft/managed-appsSkill363d agoMITA51Claude Code
mem0-oss-to-platformmem0ai/mem0Skill69k2d agoApache-2.0A217Claude Code, Codex
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.2k2d agoMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.2k2d agoMITA46Claude Code
api-designericrisco/rsc-harnessSkill5554d agoMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill253yesterdayMITA106Claude Code
telnyx-messaging-hosted-curlteam-telnyx/aiSkill225todayMITA45Claude Code