Skip to main content
Glama

mcp-google-sheets

activate-user.ts964 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { oktaAuth, makeOktaRequest, userIdDropdown } from '../common/common'; import { HttpMethod } from '@activepieces/pieces-common'; export const activateUserAction = createAction({ auth: oktaAuth, name: 'activate_user', displayName: 'Activate User', description: 'Activate a previously deactivated or pending user', props: { userId: userIdDropdown(), sendEmail: Property.Checkbox({ displayName: 'Send Email', description: 'Send activation email to user', required: false, defaultValue: false, }), }, async run(context) { const userId = context.propsValue.userId; const sendEmail = context.propsValue.sendEmail ? 'true' : 'false'; const response = await makeOktaRequest( context.auth, `/users/${userId}/lifecycle/activate?sendEmail=${sendEmail}`, 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