add_members_to_project
imerit_ango.sdk.SDK.
add_members_to_project(project_id, members, role)
Assign one or more existing organization members to your project with a specified project role.
Parameters
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.
members: List[str]
A list of email addresses for the users you want to add to the project.
Example:
["user1@example.com", "user2@example.com"]
role: ProjectRoles
The project-level role to assign to the added member(s).
Possible roles 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.
All specified users must be existing members of the organization. To invite new users to the organization, use the invite_members_to_org function.
How to verify in Ango Hub?
After successfully executing the add_members_to_project function, you can validate the changes directly in Ango Hub.
Navigate to: Projects → [Your Project] → Settings → Members
Confirm that the newly added users are listed under project members.
Verify that each user has been assigned the correct role.
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