ninja_get_organization_end_users
Retrieve all end users associated with an organization by providing its unique ID.
Instructions
Get end users associated with an organization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Organization ID |
Implementation Reference
- src/tools/organizations.ts:185-186 (handler)Handler function that executes the API call to GET /organization/{id}/end-users via the NinjaOneClient.
handler: async ({ id }, client: NinjaOneClient) => client.get(`/organization/${id}/end-users`), - src/tools/organizations.ts:178-183 (schema)Input schema for ninja_get_organization_end_users, requiring only 'id' (number).
type: 'object', required: ['id'], properties: { id: { type: 'number', description: 'Organization ID' }, }, }, - src/tools/organizations.ts:173-187 (registration)Registration of the tool in the organizationTools array as a ToolDef object with name 'ninja_get_organization_end_users'.
{ tool: { name: 'ninja_get_organization_end_users', description: 'Get end users associated with an organization.', inputSchema: { type: 'object', required: ['id'], properties: { id: { type: 'number', description: 'Organization ID' }, }, }, }, handler: async ({ id }, client: NinjaOneClient) => client.get(`/organization/${id}/end-users`), },