Sorry, no results found for "".
New owner for resources previously owned by the deleted SSO user. This argument specifies the new owner type.
"user"
New owner for resources previously owned by the deleted SSO user. This argument specifies the new owner ID.
"7865"
Returns a resource object of type sso_user
import { buildClient } from "@datocms/cma-client-node";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const userId = "312";
const ssoUser = await client.ssoUsers.destroy(userId);
// Check the 'Returned output' tab for the result ☝️ console.log(ssoUser);}
run();
{ id: "312", username: "mark.smith@example.com", external_id: "Ja23ekjhsad", is_active: true, first_name: "Mark", last_name: "Smith", meta: { last_access: "2018-03-25T21:50:24.914Z" }, groups: [{ type: "sso_group", id: "312" }], role: { type: "role", id: "34" },}