invite_members_to_org
imerit_ango.sdk.SDK.
invite_members_to_org(organization_id, invite_data)
Send invitations to new members to join your organization.
Parameters
organization_id: string
The unique identifier for the organization. You can find the organization ID in the user interface.
invite_data: Invitation
An Invitation object containing the invitation details, with the following attributes:
to: List[str]
List of email addresses of the invited members
organization_role: OrganizationRoles
The role assigned to the invited members within the organization. Options include:
OrganizationRoles.Admin
OrganizationRoles.Member
project_assignments: List[ProjectAssignment], Optional, default None
ProjectAssignment
project_id: string
The unique identifier for the project. You can find the project ID in the user interface or retrieve it using the
list_projectsfunction.
project_role: ProjectRoles
The role assigned to the invited members within the project. Options include:
ProjectRoles.Manager
ProjectRoles.Labeler
ProjectRoles.Reviewer
ProjectRoles.Lead
Returns:
output: dict
A dictionary containing the result of the operation.
Including a
statusfield indicating whether the request was successful and adatafield containing the response payload with updated resources produced by the operation.
How to verify in Ango Hub?
After successfully executing the invite_members_to_org function, you can validate the changes directly in Ango Hub.
Navigate to: Organization → Members
Confirm that the invited members appear in the list under the invitations.
Ensure that each user has been invited with the correct role assigned
Changes made via the SDK are reflected in Ango Hub in near real-time. If updates are not immediately visible, please refresh the page.
Example
Last updated