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

    Examples

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