Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
mongodbatlas.Team describes a Team. The resource requires your Organization ID, Project ID and Team ID.
NOTE: Groups and projects are synonymous terms. You may find
group_idin the official documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testTeam = new mongodbatlas.Team("test", {
orgId: "<ORGANIZATION-ID>",
name: "myNewTeam",
usernames: [
"user1",
"user2",
"user3",
],
});
const test = mongodbatlas.getTeamOutput({
orgId: testTeam.orgId,
teamId: testTeam.teamId,
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_team = mongodbatlas.Team("test",
org_id="<ORGANIZATION-ID>",
name="myNewTeam",
usernames=[
"user1",
"user2",
"user3",
])
test = mongodbatlas.get_team_output(org_id=test_team.org_id,
team_id=test_team.team_id)
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testTeam, err := mongodbatlas.NewTeam(ctx, "test", &mongodbatlas.TeamArgs{
OrgId: pulumi.String("<ORGANIZATION-ID>"),
Name: pulumi.String("myNewTeam"),
Usernames: pulumi.StringArray{
pulumi.String("user1"),
pulumi.String("user2"),
pulumi.String("user3"),
},
})
if err != nil {
return err
}
_ = mongodbatlas.LookupTeamOutput(ctx, mongodbatlas.GetTeamOutputArgs{
OrgId: testTeam.OrgId,
TeamId: testTeam.TeamId,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var testTeam = new Mongodbatlas.Team("test", new()
{
OrgId = "<ORGANIZATION-ID>",
Name = "myNewTeam",
Usernames = new[]
{
"user1",
"user2",
"user3",
},
});
var test = Mongodbatlas.GetTeam.Invoke(new()
{
OrgId = testTeam.OrgId,
TeamId = testTeam.TeamId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.Team;
import com.pulumi.mongodbatlas.TeamArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetTeamArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testTeam = new Team("testTeam", TeamArgs.builder()
.orgId("<ORGANIZATION-ID>")
.name("myNewTeam")
.usernames(
"user1",
"user2",
"user3")
.build());
final var test = MongodbatlasFunctions.getTeam(GetTeamArgs.builder()
.orgId(testTeam.orgId())
.teamId(testTeam.teamId())
.build());
}
}
resources:
testTeam:
type: mongodbatlas:Team
name: test
properties:
orgId: <ORGANIZATION-ID>
name: myNewTeam
usernames:
- user1
- user2
- user3
variables:
test:
fn::invoke:
function: mongodbatlas:getTeam
arguments:
orgId: ${testTeam.orgId}
teamId: ${testTeam.teamId}
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const test = new mongodbatlas.Team("test", {
orgId: "<ORGANIZATION-ID>",
name: "myNewTeam",
usernames: [
"user1",
"user2",
"user3",
],
});
const test2 = mongodbatlas.getTeamOutput({
orgId: test.orgId,
name: test.name,
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test = mongodbatlas.Team("test",
org_id="<ORGANIZATION-ID>",
name="myNewTeam",
usernames=[
"user1",
"user2",
"user3",
])
test2 = mongodbatlas.get_team_output(org_id=test.org_id,
name=test.name)
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := mongodbatlas.NewTeam(ctx, "test", &mongodbatlas.TeamArgs{
OrgId: pulumi.String("<ORGANIZATION-ID>"),
Name: pulumi.String("myNewTeam"),
Usernames: pulumi.StringArray{
pulumi.String("user1"),
pulumi.String("user2"),
pulumi.String("user3"),
},
})
if err != nil {
return err
}
_ = mongodbatlas.LookupTeamOutput(ctx, mongodbatlas.GetTeamOutputArgs{
OrgId: test.OrgId,
Name: test.Name,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var test = new Mongodbatlas.Team("test", new()
{
OrgId = "<ORGANIZATION-ID>",
Name = "myNewTeam",
Usernames = new[]
{
"user1",
"user2",
"user3",
},
});
var test2 = Mongodbatlas.GetTeam.Invoke(new()
{
OrgId = test.OrgId,
Name = test.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.Team;
import com.pulumi.mongodbatlas.TeamArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetTeamArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new Team("test", TeamArgs.builder()
.orgId("<ORGANIZATION-ID>")
.name("myNewTeam")
.usernames(
"user1",
"user2",
"user3")
.build());
final var test2 = MongodbatlasFunctions.getTeam(GetTeamArgs.builder()
.orgId(test.orgId())
.name(test.name())
.build());
}
}
resources:
test:
type: mongodbatlas:Team
properties:
orgId: <ORGANIZATION-ID>
name: myNewTeam
usernames:
- user1
- user2
- user3
variables:
test2:
fn::invoke:
function: mongodbatlas:getTeam
arguments:
orgId: ${test.orgId}
name: ${test.name}
Using getTeam
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTeam(args: GetTeamArgs, opts?: InvokeOptions): Promise<GetTeamResult>
function getTeamOutput(args: GetTeamOutputArgs, opts?: InvokeOptions): Output<GetTeamResult>def get_team(name: Optional[str] = None,
org_id: Optional[str] = None,
team_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTeamResult
def get_team_output(name: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
team_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTeamResult]func LookupTeam(ctx *Context, args *LookupTeamArgs, opts ...InvokeOption) (*LookupTeamResult, error)
func LookupTeamOutput(ctx *Context, args *LookupTeamOutputArgs, opts ...InvokeOption) LookupTeamResultOutput> Note: This function is named LookupTeam in the Go SDK.
public static class GetTeam
{
public static Task<GetTeamResult> InvokeAsync(GetTeamArgs args, InvokeOptions? opts = null)
public static Output<GetTeamResult> Invoke(GetTeamInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
public static Output<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
fn::invoke:
function: mongodbatlas:index/getTeam:getTeam
arguments:
# arguments dictionaryThe following arguments are supported:
getTeam Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the team you want to create.
- Org
Id string - Team
Id string - The unique identifier for the team.
- Usernames List<string>
- (DEPRECATED) The users who are part of the team. This attribute is deprecated and will be removed in the next major release. Please transition to
data.mongodbatlas_team.users. For more details, see Migration Guide: Team Usernames Attribute to Cloud User Team Assignment. - Users
List<Get
Team User> - Returns a list of all pending and active MongoDB Cloud users associated with the specified team.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the team you want to create.
- Org
Id string - Team
Id string - The unique identifier for the team.
- Usernames []string
- (DEPRECATED) The users who are part of the team. This attribute is deprecated and will be removed in the next major release. Please transition to
data.mongodbatlas_team.users. For more details, see Migration Guide: Team Usernames Attribute to Cloud User Team Assignment. - Users
[]Get
Team User - Returns a list of all pending and active MongoDB Cloud users associated with the specified team.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the team you want to create.
- org
Id String - team
Id String - The unique identifier for the team.
- usernames List<String>
- (DEPRECATED) The users who are part of the team. This attribute is deprecated and will be removed in the next major release. Please transition to
data.mongodbatlas_team.users. For more details, see Migration Guide: Team Usernames Attribute to Cloud User Team Assignment. - users
List<Get
Team User> - Returns a list of all pending and active MongoDB Cloud users associated with the specified team.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the team you want to create.
- org
Id string - team
Id string - The unique identifier for the team.
- usernames string[]
- (DEPRECATED) The users who are part of the team. This attribute is deprecated and will be removed in the next major release. Please transition to
data.mongodbatlas_team.users. For more details, see Migration Guide: Team Usernames Attribute to Cloud User Team Assignment. - users
Get
Team User[] - Returns a list of all pending and active MongoDB Cloud users associated with the specified team.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the team you want to create.
- org_
id str - team_
id str - The unique identifier for the team.
- usernames Sequence[str]
- (DEPRECATED) The users who are part of the team. This attribute is deprecated and will be removed in the next major release. Please transition to
data.mongodbatlas_team.users. For more details, see Migration Guide: Team Usernames Attribute to Cloud User Team Assignment. - users
Sequence[Get
Team User] - Returns a list of all pending and active MongoDB Cloud users associated with the specified team.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the team you want to create.
- org
Id String - team
Id String - The unique identifier for the team.
- usernames List<String>
- (DEPRECATED) The users who are part of the team. This attribute is deprecated and will be removed in the next major release. Please transition to
data.mongodbatlas_team.users. For more details, see Migration Guide: Team Usernames Attribute to Cloud User Team Assignment. - users List<Property Map>
- Returns a list of all pending and active MongoDB Cloud users associated with the specified team.
Supporting Types
GetTeamUser
- Country string
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- Created
At string - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- First
Name string - First or given name that belongs to the MongoDB Cloud user.
- Id string
- Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- Invitation
Created stringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Invitation
Expires stringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Inviter
Username string - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- Last
Auth string - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- Last
Name string - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- Mobile
Number string - Mobile phone number that belongs to the MongoDB Cloud user.
- Org
Membership stringStatus - String enum that indicates whether the MongoDB Cloud user has a pending invitation to join the organization or are already active in the organization.
- Roles
List<Get
Team User Role> - Organization and project-level roles assigned to one MongoDB Cloud user within one organization.
- Team
Ids List<string> - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- Username string
- Email address that represents the username of the MongoDB Cloud user.
- Country string
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- Created
At string - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- First
Name string - First or given name that belongs to the MongoDB Cloud user.
- Id string
- Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- Invitation
Created stringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Invitation
Expires stringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- Inviter
Username string - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- Last
Auth string - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- Last
Name string - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- Mobile
Number string - Mobile phone number that belongs to the MongoDB Cloud user.
- Org
Membership stringStatus - String enum that indicates whether the MongoDB Cloud user has a pending invitation to join the organization or are already active in the organization.
- Roles
[]Get
Team User Role - Organization and project-level roles assigned to one MongoDB Cloud user within one organization.
- Team
Ids []string - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- Username string
- Email address that represents the username of the MongoDB Cloud user.
- country String
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created
At String - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first
Name String - First or given name that belongs to the MongoDB Cloud user.
- id String
- Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- invitation
Created StringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation
Expires StringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter
Username String - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last
Auth String - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last
Name String - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile
Number String - Mobile phone number that belongs to the MongoDB Cloud user.
- org
Membership StringStatus - String enum that indicates whether the MongoDB Cloud user has a pending invitation to join the organization or are already active in the organization.
- roles
List<Get
Team User Role> - Organization and project-level roles assigned to one MongoDB Cloud user within one organization.
- team
Ids List<String> - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- username String
- Email address that represents the username of the MongoDB Cloud user.
- country string
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created
At string - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first
Name string - First or given name that belongs to the MongoDB Cloud user.
- id string
- Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- invitation
Created stringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation
Expires stringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter
Username string - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last
Auth string - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last
Name string - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile
Number string - Mobile phone number that belongs to the MongoDB Cloud user.
- org
Membership stringStatus - String enum that indicates whether the MongoDB Cloud user has a pending invitation to join the organization or are already active in the organization.
- roles
Get
Team User Role[] - Organization and project-level roles assigned to one MongoDB Cloud user within one organization.
- team
Ids string[] - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- username string
- Email address that represents the username of the MongoDB Cloud user.
- country str
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created_
at str - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first_
name str - First or given name that belongs to the MongoDB Cloud user.
- id str
- Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- invitation_
created_ strat - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation_
expires_ strat - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter_
username str - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last_
auth str - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last_
name str - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile_
number str - Mobile phone number that belongs to the MongoDB Cloud user.
- org_
membership_ strstatus - String enum that indicates whether the MongoDB Cloud user has a pending invitation to join the organization or are already active in the organization.
- roles
Sequence[Get
Team User Role] - Organization and project-level roles assigned to one MongoDB Cloud user within one organization.
- team_
ids Sequence[str] - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- username str
- Email address that represents the username of the MongoDB Cloud user.
- country String
- Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
- created
At String - Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
- first
Name String - First or given name that belongs to the MongoDB Cloud user.
- id String
- Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
- invitation
Created StringAt - Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- invitation
Expires StringAt - Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
- inviter
Username String - Username of the MongoDB Cloud user who sent the invitation to join the organization.
- last
Auth String - Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
- last
Name String - Last name, family name, or surname that belongs to the MongoDB Cloud user.
- mobile
Number String - Mobile phone number that belongs to the MongoDB Cloud user.
- org
Membership StringStatus - String enum that indicates whether the MongoDB Cloud user has a pending invitation to join the organization or are already active in the organization.
- roles List<Property Map>
- Organization and project-level roles assigned to one MongoDB Cloud user within one organization.
- team
Ids List<String> - List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
- username String
- Email address that represents the username of the MongoDB Cloud user.
GetTeamUserRole
- org
Roles List<String> - project
Role List<Property Map>Assignments
GetTeamUserRoleProjectRoleAssignment
- Project
Id string - Project
Roles List<string>
- Project
Id string - Project
Roles []string
- project
Id String - project
Roles List<String>
- project
Id string - project
Roles string[]
- project_
id str - project_
roles Sequence[str]
- project
Id String - project
Roles List<String>
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
