Choose your language:
    List all users
    Returns
    Returns an array of sso_user objects.

    Examples

    Example code:
    const { SiteClient } = require('datocms-client');
    async function run() {
    const client = new SiteClient('YOUR-API-TOKEN');
    const ssoUsers = await client.ssoUsers.all();
    ssoUsers.forEach((ssoUser) => {
    console.log(ssoUser);
    });
    }
    run();
    Returned output:
    > node example.js
    {
    "id": "312",
    "username": "mark.smith@example.com",
    "externalId": "Ja23ekjhsad",
    "isActive": true,
    "firstName": "Mark",
    "lastName": "Smith",
    "meta": {
    "last_access": "2018-03-25T21:50:24.914Z"
    },
    "groups": [
    "312"
    ],
    "role": "34"
    }