Show examples in:
    Retrieve a collaborator

    Query parameters

    include  Optional  string  Example: "role"

    Comma-separated list of relationship paths. A relationship path is a dot-separated list of relationship names. Allowed relationship paths: role.

    Returns

    Returns a user resource object.

    Examples

    Example Basic example
    import { buildClient } from '@datocms/cma-client-node';
    async function run() {
    const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
    const userId = '312';
    const user = await client.users.find(userId);
    console.log(user);
    }
    run();