Choose your language:
    List all SSO groups
    Returns
    Returns an array of sso_group objects.

    Examples

    Example code:
    const { SiteClient } = require('datocms-client');
    async function run() {
    const client = new SiteClient('YOUR-API-TOKEN');
    const ssoGroups = await client.ssoGroups.all();
    ssoGroups.forEach((ssoGroup) => {
    console.log(ssoGroup);
    });
    }
    run();
    Returned output:
    > node example.js
    {
    "id": "312",
    "name": "Admin",
    "priority": 1,
    "role": "34",
    "users": [
    "312"
    ]
    }