delete_organization_members

imerit_ango.sdk.SDK.

delete_organization_members(organization_id, member_emails)

Remove specified members from an organization.

Parameters

  • organization_id: string

    • The unique identifier for the organization. You can find the organization ID in the user interface.

  • member_emails: List[string]

    • A list of email addresses of the members you want to remove from the organization.

    • Example: ["user1@example.com", "user2@example.com"]

Returns:

  • output: dict

Example

import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
organization_id = os.getenv('ORGANIZATION_ID')

ango_sdk = SDK(api_key)

ango_sdk.delete_organization_members(organization_id=organization_id, 
                                     member_emails=["user1@example.com", "user2@example.com"])

Last updated