Get categories assigned to a specific user
The unique identifier of the user
Optional
Array of category objects assigned to the user
401 - Not authenticated
404 - User not found
import { getUserCategories } from "@cpod/sdk";const userCategories = await getUserCategories("user-123");console.log(`User belongs to ${userCategories.length} categories`);userCategories.forEach(cat => console.log(cat.name)); Copy
import { getUserCategories } from "@cpod/sdk";const userCategories = await getUserCategories("user-123");console.log(`User belongs to ${userCategories.length} categories`);userCategories.forEach(cat => console.log(cat.name));
Get categories assigned to a specific user