Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > SSO Group

List all SSO groups

Returns

Returns an array of resource objects of type sso_group

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const ssoGroups = await client.ssoGroups.list();
for (const ssoGroup of ssoGroups) {
// Check the 'Returned output' tab for the result ☝️
console.log(ssoGroup);
}
}
run();
{
id: "312",
name: "Admin",
priority: 1,
role: { type: "role", id: "34" },
users: [{ type: "sso_user", id: "312" }],
}