update_organization_members_role

imerit_ango.sdk.SDK.

update_organization_members_role(organization_id, role_updates)

Change the roles of specified members in your organization.

Parameters

  • organization_id: string

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

  • role_updates: List[RoleUpdate]

    • A list of role updates for the members. Each RoleUpdate object contains the following attributes:

    • RoleUpdate

      • email: string

      • organization_role: OrganizationRoles

        • The new role assigned to the member within the organization. Options include:

          • OrganizationRoles.Member

          • OrganizationRoles.Admin

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

    • Including a status field indicating whether the request was successful and a data field containing the response payload with updated resources produced by the operation.

How to verify in Ango Hub?

After successfully executing the update_organization_members_role 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