Assign MongoDB Cloud Users in One Organization to One Team
Deprecated /api/atlas/v2/orgs/{orgId}/teams/{teamId}/users Adds one or more MongoDB Cloud users from the specified organization to the specified team. Teams enable you to grant project access roles to MongoDB Cloud users. You can assign up to 250 MongoDB Cloud users from one organization to one team. To use this resource, the requesting Service Account or API Key must have the Organization Owner role.
Note: This endpoint is deprecated. Use Add One MongoDB Cloud User to One Team to add an active or pending user to a team.
Parameters
path Path Parameters
| Name | Type |
|---|---|
orgId
required
Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access. | string |
teamId
required
Unique 24-hexadecimal character string that identifies the team to which you want to add MongoDB Cloud users. | string |
query Query Parameters
| Name | Type |
|---|---|
envelope Flag that indicates whether Application wraps the response in an | boolean |
pretty Flag that indicates whether the response body should be in the prettyprint format. | boolean |
Request Body
One or more MongoDB Cloud users that you want to add to the specified team.
id: string;
}[]
Responses
OK
links?: readonly
results?: readonly
totalCount?: number;
}
Client Errors
Bad Request.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Unauthorized.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Forbidden.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Not Found.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Conflict.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Server Errors
Internal Server Error.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}