Show examples in:
    Sync SSO provider groups to DatoCMS roles

    Returns

    Returns a sso_group resource object.

    Examples

    Example code:
    import { buildClient } from '@datocms/cma-client-node';
    async function run() {
    const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
    const ssoGroupId = '312';
    const ssoGroup = await client.ssoGroups.copyRoles(ssoGroupId);
    console.log(ssoGroup);
    }
    run();
    Returned output:
    {
    id: '312',
    name: 'Admin',
    priority: 1,
    role: {
    type: 'role',
    id: '34'
    },
    users: [
    {
    type: 'sso_user',
    id: '312'
    }
    ]
    }