get_identities_stats
Retrieve organization identity statistics to analyze management type counts, HR master integration, and domain lists for identity distribution insights.
Instructions
Get identities statistics for an organization. Returns management type counts, HR master integration information, and domain lists. Use this to understand the distribution of identities across different management types and HR systems.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/getIdentitiesStats.ts:1-11 (handler)Main handler function 'getIdentitiesStats' that calls the API at '/identity/stats' to get identity statistics for an organization.
import { z } from "zod"; import { getClient } from "../admina-api.js"; export const GetIdentitiesStatsSchema = z.object({}); export type GetIdentitiesStatsParams = z.infer<typeof GetIdentitiesStatsSchema>; export async function getIdentitiesStats(_params: GetIdentitiesStatsParams) { const client = getClient(); return client.makeApiCall("/identity/stats", new URLSearchParams()); } - src/tools/getIdentitiesStats.ts:4-4 (schema)Input schema 'GetIdentitiesStatsSchema' - an empty Zod object (no parameters required).
export const GetIdentitiesStatsSchema = z.object({}); - src/tools/getIdentitiesStats.ts:6-6 (helper)Type definition 'GetIdentitiesStatsParams' inferred from the schema.
export type GetIdentitiesStatsParams = z.infer<typeof GetIdentitiesStatsSchema>; - src/index.ts:231-235 (registration)Registration of the 'get_identities_stats' tool with description and input schema.
name: "get_identities_stats", description: "Get identities statistics for an organization. Returns management type counts, HR master integration information, and domain lists. Use this to understand the distribution of identities across different management types and HR systems.", inputSchema: zodToJsonSchema(GetIdentitiesStatsSchema), }, - src/index.ts:321-321 (registration)Handler binding: maps the tool name 'get_identities_stats' to the actual function call with schema parsing.
get_identities_stats: async (input) => getIdentitiesStats(GetIdentitiesStatsSchema.parse(input)),