Skip to main content
Glama

mcp-google-sheets

suspend-user.ts673 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { oktaAuth, makeOktaRequest, userIdDropdown } from '../common/common'; import { HttpMethod } from '@activepieces/pieces-common'; export const suspendUserAction = createAction({ auth: oktaAuth, name: 'suspend_user', displayName: 'Suspend User', description: 'Temporarily suspend a user in Okta', props: { userId: userIdDropdown(), }, async run(context) { const userId = context.propsValue.userId; const response = await makeOktaRequest( context.auth, `/users/${userId}/lifecycle/suspend`, HttpMethod.POST ); return response.body; }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server