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();
{id: '312',name: 'Admin',priority: 1,role: {type: 'role',id: '34'},users: [{type: 'sso_user',id: '312'}]}