Sorry, no results found for "".
Returns an array of resource objects of type sso_user
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const ssoUsers = await client.ssoUsers.list();7 8 for (const ssoUser of ssoUsers) {9 // Check the 'Returned output' tab for the result ☝️10 console.log(ssoUser);11 }12}13 14run();
1{2 id: "312",3 username: "mark.smith@example.com",4 external_id: "Ja23ekjhsad",5 is_active: true,6 first_name: "Mark",7 last_name: "Smith",8 meta: { last_access: "2018-03-25T21:50:24.914Z" },9 groups: [{ type: "sso_group", id: "312" }],10 role: { type: "role", id: "34" },11}